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
+8
View File
@@ -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)
}