Can delete an accommodation

This commit is contained in:
2024-05-23 21:30:51 +02:00
parent c4fadce69f
commit 18582fdff7
5 changed files with 99 additions and 9 deletions

View File

@@ -211,8 +211,12 @@ async fn main() -> std::io::Result<()> {
web::post().to(accommodations_list_controller::create),
)
// TODO : update
// TODO : delete
.route(
"/family/{id}/accommodations/list/{accommodation_id}",
web::delete().to(accommodations_list_controller::delete),
)
// TODO : list
// TODO : get single
// [ACCOMODATIONS] Reservations controller
// TODO : create
// TODO : update