aboutsummaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorAkshay <[email protected]>2020-11-11 13:44:32 +0000
committerAkshay <[email protected]>2020-11-11 13:44:32 +0000
commit4589d5a278c8d1c51e4a465c04945f8a84b6e131 (patch)
tree3463c9be99e405ea8f48e3a653ce19dfbe174dcc /src/bin
parentf0c96a04f5bfbd85c6c61146c337af0f891a4638 (diff)
add change password endpoint, compiles on stable rust
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/server.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/bin/server.rs b/src/bin/server.rs
index eb290db..d074e4f 100644
--- a/src/bin/server.rs
+++ b/src/bin/server.rs
@@ -34,7 +34,11 @@ async fn main() -> std::io::Result<()> {
34 .route("/existing", web::post().to(users::name_exists)) 34 .route("/existing", web::post().to(users::name_exists))
35 .route("/login", web::post().to(users::login)) 35 .route("/login", web::post().to(users::login))
36 .route("/{uname}", web::get().to(users::user_details)) 36 .route("/{uname}", web::get().to(users::user_details))
37 .route("/new", web::post().to(users::new_user)), 37 .route("/new", web::post().to(users::new_user))
38 .route(
39 "/change_password",
40 web::post().to(users::change_password),
41 ),
38 ) 42 )
39 .route("/hey", web::get().to(manual_hello)) 43 .route("/hey", web::get().to(manual_hello))
40 }) 44 })