Can update profile information

This commit is contained in:
2023-06-05 18:52:00 +02:00
parent 0050d99797
commit 0ed24d078d
3 changed files with 46 additions and 1 deletions

View File

@ -54,6 +54,10 @@ async fn main() -> std::io::Result<()> {
.route("/auth/logout", web::get().to(auth_controller::logout))
// User controller
.route("/user/info", web::get().to(user_controller::auth_info))
.route(
"/user/update_profile",
web::post().to(user_controller::update_profile),
)
})
.bind(AppConfig::get().listen_address.as_str())?
.run()