Recipe edit (WIP): Buttons to add steps and inrgedients

This commit is contained in:
Greg Burri 2024-12-27 12:51:29 +01:00
parent 6876a254e1
commit d4962c98ff
9 changed files with 182 additions and 15 deletions

View file

@ -109,10 +109,20 @@ async fn main() {
"/recipe/set_group_comment",
put(services::ron::set_group_comment),
)
.route("/recipe/add_step", post(services::ron::add_step))
.route("/recipe/remove_step", delete(services::ron::rm_step))
.route(
"/recipe/set_step_action",
put(services::ron::set_step_action),
)
.route(
"/recipe/add_ingredient",
post(services::ron::add_ingredient),
)
.route(
"/recipe/remove_ingredient",
delete(services::ron::rm_ingredient),
)
.route(
"/recipe/set_ingredient_name",
put(services::ron::set_ingredient_name),