Can leave a family

This commit is contained in:
2023-06-21 17:35:07 +02:00
parent ad54f83c2c
commit a94b26b23c
5 changed files with 60 additions and 8 deletions

View File

@ -97,6 +97,10 @@ async fn main() -> std::io::Result<()> {
"/family/{id}/info",
web::get().to(families_controller::single_info),
)
.route(
"/family/{id}/leave",
web::post().to(families_controller::leave),
)
.route(
"/family/{id}/users",
web::get().to(families_controller::users),