Add /family/{id}/users route

This commit is contained in:
2023-06-21 17:01:52 +02:00
parent 381a4797e4
commit ad54f83c2c
5 changed files with 48 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}/users",
web::get().to(families_controller::users),
)
})
.bind(AppConfig::get().listen_address.as_str())?
.run()