chore: build
This commit is contained in:
@@ -9,3 +9,9 @@ func RegisterAdminRoutes(rg *gin.RouterGroup, h *Handler, requireAdmin gin.Handl
|
||||
group.PUT("/:id", h.Update)
|
||||
group.DELETE("/:id", h.Delete)
|
||||
}
|
||||
|
||||
// RegisterPublicRoutes exposes the read-only unit list so the storefront
|
||||
// can render price-tier labels (e.g. "3.5 g", "10 mg").
|
||||
func RegisterPublicRoutes(rg *gin.RouterGroup, h *Handler) {
|
||||
rg.GET("/units", h.List)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user