From 189617fc4e7d7efb6db52718ec31eb66e1b4a5ba Mon Sep 17 00:00:00 2001 From: Bamiwo Adebayo Date: Wed, 24 Jul 2024 20:42:13 +0100 Subject: [PATCH] docs(auth): updated API documentation for forget and reset password --- src/controllers/AuthController.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/controllers/AuthController.ts b/src/controllers/AuthController.ts index fa266ee8..e386d504 100644 --- a/src/controllers/AuthController.ts +++ b/src/controllers/AuthController.ts @@ -158,7 +158,7 @@ const login = async (req: Request, res: Response, next: NextFunction) => { /** * @swagger - * /auth/forgot-password: + * /api/v1/auth/forgotPassword: * post: * summary: Request a password reset * description: Allows a user to request a password reset link by providing their email address. @@ -217,7 +217,7 @@ const forgotPassword = async ( /** * @swagger - * /auth/reset-password: + * /api/v1/auth/resetPassword: * post: * summary: Reset a user's password * description: Allows a user to reset their password by providing a valid reset token and a new password.