Update password endpoint #8
+1
-1
@@ -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";
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user