Add API to manage recipe tags

This commit is contained in:
Greg Burri 2025-01-03 23:32:54 +01:00
parent 754d5ec9e3
commit f8333651fd
6 changed files with 244 additions and 9 deletions

View file

@ -96,6 +96,9 @@ async fn main() {
"/recipe/set_estimated_time",
put(services::ron::set_estimated_time),
)
.route("/recipe/get_tags", get(services::ron::get_tags))
.route("/recipe/add_tags", post(services::ron::add_tags))
.route("/recipe/rm_tags", delete(services::ron::rm_tags))
.route("/recipe/set_difficulty", put(services::ron::set_difficulty))
.route("/recipe/set_language", put(services::ron::set_language))
.route(