Update password endpoint #8

Merged
phoenix merged 9 commits from update_password into main 2026-06-12 13:08:35 -04:00
2 changed files with 5 additions and 1 deletions
Showing only changes of commit 18590b7e5c - Show all commits
+1 -1
View File
@@ -16,5 +16,5 @@ pub mod endpoints {
/// Endpoint constant for refresh token
pub const REFRESH_TOKEN: &str = "/api/v1/token/refresh";
/// Endpoint constant for updating password
pub const UPDATE_PASSWORD: &str = "/api/v1/token/refresh";
pub const UPDATE_PASSWORD: &str = "/api/v1/user/password/update";
}
+4
View File
@@ -110,6 +110,10 @@ pub mod init {
callers::endpoints::REFRESH_TOKEN,
post(callers::login::refresh_token),
)
.route(
callers::endpoints::UPDATE_PASSWORD,
post(callers::login::update_password),
)
.layer(cors::configure_cors().await)
}