chore: build
ci-api / test (push) Failing after 8m7s
ci-web / test (push) Failing after 5m5s

This commit is contained in:
Xor290
2026-09-20 12:18:33 +02:00
parent 8f4c7fa47a
commit 919c807004
174 changed files with 9669 additions and 1308 deletions
@@ -0,0 +1,21 @@
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)
}