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
+7
View File
@@ -9,3 +9,10 @@ func RegisterAdminRoutes(rg *gin.RouterGroup, h *Handler, requireAdmin gin.Handl
group.PUT("/:id", h.Update)
group.DELETE("/:id", h.Delete)
}
// RegisterPublicRoutes exposes read-only single-item lookup so the
// storefront can resolve a product's primary_media_id / gallery media_ids
// to a URL without needing admin access.
func RegisterPublicRoutes(rg *gin.RouterGroup, h *Handler) {
rg.GET("/media/:id", h.Get)
}