chore: build
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user