path changed
This commit is contained in:
parent
38f53cd10f
commit
b904b18355
@ -3051,7 +3051,7 @@ router.get("/manufacturing/getManufacturingMonthlyOverview", [verifySignature, v
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* @swagger
|
* @swagger
|
||||||
* /api/login/request-otp:
|
* /api/auth/request-otp:
|
||||||
* post:
|
* post:
|
||||||
* summary: Request OTP for login Admin or Establishment User
|
* summary: Request OTP for login Admin or Establishment User
|
||||||
* tags: [Admin And Establishments User Auth]
|
* tags: [Admin And Establishments User Auth]
|
||||||
@ -3077,7 +3077,7 @@ router.get("/manufacturing/getManufacturingMonthlyOverview", [verifySignature, v
|
|||||||
* 500:
|
* 500:
|
||||||
* description: Server error
|
* description: Server error
|
||||||
*/
|
*/
|
||||||
router.post("/login/request-otp",[verifySignature], establishmentController.requestOTPForLogin);
|
router.post("/auth/request-otp",[verifySignature], establishmentController.requestOTPForLogin);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -241,7 +241,7 @@ app.use((req, res, next) => {
|
|||||||
"/api/forgot-password/request-otp",
|
"/api/forgot-password/request-otp",
|
||||||
"/api/forgot-password/verify-otp",
|
"/api/forgot-password/verify-otp",
|
||||||
"/api/csrf-token",
|
"/api/csrf-token",
|
||||||
"/api/login/request-otp"
|
"/api/auth/request-otp"
|
||||||
];
|
];
|
||||||
|
|
||||||
if (csrfExcludedPaths.includes(req.path)) {
|
if (csrfExcludedPaths.includes(req.path)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user