path changed

This commit is contained in:
unknown 2025-12-30 15:54:07 +05:30
parent 38f53cd10f
commit b904b18355
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

@ -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)) {