diff --git a/app/routes/routes.js b/app/routes/routes.js index 3e92d26..f0979ba 100644 --- a/app/routes/routes.js +++ b/app/routes/routes.js @@ -3051,7 +3051,7 @@ router.get("/manufacturing/getManufacturingMonthlyOverview", [verifySignature, v /** * @swagger - * /api/login/request-otp: + * /api/auth/request-otp: * post: * summary: Request OTP for login Admin or Establishment User * tags: [Admin And Establishments User Auth] @@ -3077,7 +3077,7 @@ router.get("/manufacturing/getManufacturingMonthlyOverview", [verifySignature, v * 500: * description: Server error */ -router.post("/login/request-otp",[verifySignature], establishmentController.requestOTPForLogin); +router.post("/auth/request-otp",[verifySignature], establishmentController.requestOTPForLogin); diff --git a/server.js b/server.js index 22ae559..40d09dc 100644 --- a/server.js +++ b/server.js @@ -241,7 +241,7 @@ app.use((req, res, next) => { "/api/forgot-password/request-otp", "/api/forgot-password/verify-otp", "/api/csrf-token", - "/api/login/request-otp" + "/api/auth/request-otp" ]; if (csrfExcludedPaths.includes(req.path)) {