Add PATCH /family/{id} route

This commit is contained in:
2023-06-22 14:37:48 +02:00
parent 6bbe69d01f
commit 4e1c78724f
3 changed files with 43 additions and 0 deletions

View File

@ -101,6 +101,7 @@ async fn main() -> std::io::Result<()> {
"/family/{id}/leave",
web::post().to(families_controller::leave),
)
.route("/family/{id}", web::patch().to(families_controller::update))
.route(
"/family/{id}",
web::delete().to(families_controller::delete),