Display the list of users

This commit is contained in:
2022-04-06 18:03:00 +02:00
parent da6a494875
commit 754814f04a
6 changed files with 76 additions and 3 deletions

View File

@ -115,7 +115,10 @@ async fn main() -> std::io::Result<()> {
.route("/settings/change_password", web::post().to(settings_controller::change_password_route))
// Admin routes
.route("/admin", web::get()
.to(|| async { HttpResponse::Found().append_header(("Location", "/settings")).finish() }))
.route("/admin/clients", web::get().to(admin_controller::clients_route))
.route("/admin/users", web::get().to(admin_controller::users_route))
})
.bind(listen_address)?
.run()