Add a way to delete recipe
This commit is contained in:
parent
5ce3391466
commit
31bc31035a
10 changed files with 247 additions and 175 deletions
|
|
@ -91,6 +91,7 @@ async fn main() {
|
|||
"/recipe/set_description",
|
||||
put(services::ron::set_recipe_description),
|
||||
)
|
||||
.route("/recipe/set_servings", put(services::ron::set_servings))
|
||||
.route(
|
||||
"/recipe/set_estimated_time",
|
||||
put(services::ron::set_estimated_time),
|
||||
|
|
@ -101,6 +102,7 @@ async fn main() {
|
|||
"/recipe/set_is_published",
|
||||
put(services::ron::set_is_published),
|
||||
)
|
||||
.route("/recipe/remove", delete(services::ron::rm))
|
||||
.route("/recipe/get_groups", get(services::ron::get_groups))
|
||||
.route("/recipe/add_group", post(services::ron::add_group))
|
||||
.route("/recipe/remove_group", delete(services::ron::rm_group))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue