chore: build
This commit is contained in:
@@ -6,4 +6,12 @@ func RegisterRoutes(rg *gin.RouterGroup, h *Handler, requireAdmin gin.HandlerFun
|
||||
group := rg.Group("/admin/site-settings")
|
||||
group.GET("", h.Get)
|
||||
group.PUT("", requireAdmin, h.Update)
|
||||
group.PUT("/appearance", requireAdmin, h.UpdateAppearance)
|
||||
group.PUT("/customer-auth", requireAdmin, h.UpdateCustomerAuth)
|
||||
}
|
||||
|
||||
// RegisterPublicRoutes exposes the site identity (name, description)
|
||||
// under a plain, non-admin-prefixed path for the storefront to read.
|
||||
func RegisterPublicRoutes(rg *gin.RouterGroup, h *Handler) {
|
||||
rg.GET("/site-settings", h.Get)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user