From 18590b7e5c8df758767fe95a716585bd4fda7266 Mon Sep 17 00:00:00 2001 From: phoenix Date: Fri, 12 Jun 2026 12:16:35 -0400 Subject: [PATCH] Making endpoint available --- src/callers/mod.rs | 2 +- src/lib.rs | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/callers/mod.rs b/src/callers/mod.rs index 5cfba11..cbd82aa 100644 --- a/src/callers/mod.rs +++ b/src/callers/mod.rs @@ -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"; } diff --git a/src/lib.rs b/src/lib.rs index 0a92e92..34841f0 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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) }