Can get couple information

This commit is contained in:
2023-08-07 17:16:00 +02:00
parent ff8e3cce9d
commit 4997132bf8
4 changed files with 122 additions and 1 deletions

View File

@ -167,6 +167,14 @@ async fn main() -> std::io::Result<()> {
"/family/{id}/couple/create",
web::post().to(couples_controller::create),
)
.route(
"/family/{id}/couples",
web::get().to(couples_controller::get_all),
)
.route(
"/family/{id}/couple/{couple_id}",
web::get().to(couples_controller::get_single),
)
// Photos controller
.route(
"/photo/{id}",