ingredient composition
This commit is contained in:
@@ -322,6 +322,9 @@ func (r *Router) addAppRoutes(rg *gin.Engine) {
|
||||
ingredients.GET("/:id", r.ingredientHandler.GetByID)
|
||||
ingredients.PUT("/:id", r.ingredientHandler.Update)
|
||||
ingredients.DELETE("/:id", r.ingredientHandler.Delete)
|
||||
ingredients.POST("/:id/compositions", r.ingredientHandler.AddCompositions)
|
||||
ingredients.PUT("/compositions/:composition_id", r.ingredientHandler.UpdateComposition)
|
||||
ingredients.DELETE("/compositions/:composition_id", r.ingredientHandler.DeleteComposition)
|
||||
}
|
||||
|
||||
vendors := protected.Group("/vendors")
|
||||
|
||||
Reference in New Issue
Block a user