diff options
| author | Jokler <github@jokler.xyz> | 2026-10-05 16:07:20 +0200 |
|---|---|---|
| committer | Jokler <github@jokler.xyz> | 2026-10-05 22:25:43 +0200 |
| commit | 625ea9193202f678ab2799283ddfe2b282ba1e90 (patch) | |
| tree | ccb98fdfca95b0787b730d5e9a3d3c9146eabf9a /src/main.rs | |
| parent | 0fed68e150b028b9ad62e75e0472a34224042501 (diff) | |
| download | joklerpoints-625ea9193202f678ab2799283ddfe2b282ba1e90.tar.gz joklerpoints-625ea9193202f678ab2799283ddfe2b282ba1e90.zip | |
Add user creation
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/main.rs b/src/main.rs index 0f39622..c5de543 100644 --- a/src/main.rs +++ b/src/main.rs @@ -100,10 +100,14 @@ async fn main() -> std::io::Result<()> { .route("/settings", web::get().to(user::settings)) .route("/reset-password", web::post().to(user::reset_password)) .route("/logout", web::get().to(user::logout)) + .route("/admin", web::get().to(admin::handle_index)) .service( - web::resource("/admin") - .route(web::get().to(admin::index)) - .route(web::post().to(admin::create_user)), + web::scope("/admin") + .route("/create-user", web::post().to(admin::handle_create_user)) + .route( + "/change-password", + web::post().to(admin::handle_change_password), + ), ) .service(actix_files::Files::new("/static", "static/")) }) |
