Display the list of users
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user