Can update profile information
This commit is contained in:
@ -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()
|
||||
|
Reference in New Issue
Block a user