Can set photo to couple

This commit is contained in:
2023-08-08 10:33:12 +02:00
parent 3a219ff9e2
commit 0262889913
2 changed files with 41 additions and 1 deletions

View File

@ -183,6 +183,14 @@ async fn main() -> std::io::Result<()> {
"/family/{id}/couple/{couple_id}",
web::delete().to(couples_controller::delete),
)
.route(
"/family/{id}/couple/{couple_id}/photo",
web::put().to(couples_controller::set_photo),
)
.route(
"/family/{id}/couple/{couple_id}/photo",
web::delete().to(couples_controller::remove_photo),
)
// Photos controller
.route(
"/photo/{id}",