From 4589d5a278c8d1c51e4a465c04945f8a84b6e131 Mon Sep 17 00:00:00 2001 From: Akshay Date: Wed, 11 Nov 2020 19:14:32 +0530 Subject: add change password endpoint, compiles on stable rust --- src/bin/server.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'src/bin') 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<()> { .route("/existing", web::post().to(users::name_exists)) .route("/login", web::post().to(users::login)) .route("/{uname}", web::get().to(users::user_details)) - .route("/new", web::post().to(users::new_user)), + .route("/new", web::post().to(users::new_user)) + .route( + "/change_password", + web::post().to(users::change_password), + ), ) .route("/hey", web::get().to(manual_hello)) }) -- cgit v1.2.3