Add route /family/list

This commit is contained in:
2023-06-20 18:55:14 +02:00
parent 0ef722d29f
commit 3004f57185
5 changed files with 33 additions and 3 deletions

View File

@ -92,6 +92,7 @@ async fn main() -> std::io::Result<()> {
web::post().to(families_controller::create),
)
.route("/family/join", web::post().to(families_controller::join))
.route("/family/list", web::get().to(families_controller::list))
})
.bind(AppConfig::get().listen_address.as_str())?
.run()