Can replace password

This commit is contained in:
2023-06-05 19:02:51 +02:00
parent 0ed24d078d
commit c99a3a319c
3 changed files with 56 additions and 3 deletions

View File

@ -58,6 +58,10 @@ async fn main() -> std::io::Result<()> {
"/user/update_profile",
web::post().to(user_controller::update_profile),
)
.route(
"/user/replace_password",
web::post().to(user_controller::replace_password),
)
})
.bind(AppConfig::get().listen_address.as_str())?
.run()