package contactlinks import "github.com/gin-gonic/gin" func RegisterAdminRoutes(rg *gin.RouterGroup, h *Handler, requireAdmin gin.HandlerFunc) { group := rg.Group("/admin/contact-links", requireAdmin) group.GET("", h.ListAdmin) group.POST("", h.Create) group.PUT("/:id", h.Update) group.PATCH("/:id/position", h.UpdatePosition) group.DELETE("/:id", h.Delete) } // RegisterPublicRoutes exposes the read-only, active-only contact link list // used by the storefront to let customers reach the shop. func RegisterPublicRoutes(rg *gin.RouterGroup, h *Handler) { rg.GET("/contact-links", h.ListPublic) }