package customerverification import "github.com/gin-gonic/gin" // RegisterCustomerRoutes mounts the logged-in customer's own verification // endpoints, nested under the customer auth space for consistency with // /api/auth/customer/me. func RegisterCustomerRoutes(rg *gin.RouterGroup, h *Handler, requireCustomer gin.HandlerFunc) { group := rg.Group("/auth/customer/verification", requireCustomer) group.POST("", h.Submit) group.GET("", h.Me) group.GET("/document/:side", h.MyDocument) } func RegisterAdminRoutes(rg *gin.RouterGroup, h *Handler, requireAdmin gin.HandlerFunc) { group := rg.Group("/admin/customer-verifications", requireAdmin) group.GET("", h.ListAdmin) group.GET("/:id", h.GetAdmin) group.GET("/:id/document/:side", h.AdminDocument) group.PATCH("/:id", h.Review) }