package router

import (
	"bpmsapi/handler"

	"github.com/gin-gonic/gin"
)

func InitAdminRouter(r *gin.RouterGroup) {
	adminroute := r.Group("/admin")
	adminroute.POST("/signupAdmin", handler.NewAdminHandler("Admin").SignupAdminHandler)
	adminroute.POST("/validateCustomer", handler.NewAdminHandler("Admin").ValidateCustomerHandler)
	adminroute.GET("/getAdmin", handler.NewAdminHandler("Admin").GetAdminHandler)//
	adminroute.GET("/fetchTechnician", handler.NewAdminHandler("Admin").FetchTechnicianHandler)
	adminroute.POST("/updateSrqCost", handler.NewAdminHandler("SrqCost").UpdateCostHandler)
	adminroute.POST("/createChildServiceRequest", handler.NewAdminHandler("ServiceRequest").CreateChildServiceRequestHandler)
	adminroute.POST("/updateServiceRequestAdmin", handler.NewAdminHandler("Admin").UpdateServiceRequestAdminHandler)
	adminroute.POST("/updateQuotationDetails", handler.NewQuotationHandler("Quotation").UpdateQuotationDetailsHandler)
	adminroute.GET("/adminDashboard", handler.NewAdminHandler("Admin").AdminDashboardHandler)
	adminroute.GET("/getOpenOrders", nil)

}
