Can delete account

This commit is contained in:
2023-06-06 10:19:54 +02:00
parent 85e5be0328
commit 2f3f61b159
3 changed files with 29 additions and 4 deletions

View File

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