Skip to content

Commit

Permalink
feat(lib): Link /recipe endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
flo-ride committed Dec 6, 2024
1 parent 600723b commit 50b6afe
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,15 @@ fn auth_optional_routes(path: &str) -> OpenApiRouter<state::AppState> {
.routes(routes!(api::refill::new::post_new_refill))
.routes(routes!(api::refill::edit::edit_refill))
.routes(routes!(api::refill::delete::delete_refill)),
)
.nest(
"/recipe",
OpenApiRouter::new()
.routes(routes!(api::recipe::get::get_recipe))
.routes(routes!(api::recipe::get::get_all_recipes))
.routes(routes!(api::recipe::new::post_new_recipe))
.routes(routes!(api::recipe::edit::edit_recipe))
.routes(routes!(api::recipe::delete::delete_recipe)),
),
)
}
Expand Down

0 comments on commit 50b6afe

Please sign in to comment.