|
|
|
@ -31,7 +31,11 @@ function buildResetUpdateValidation() { |
|
|
|
router |
|
|
|
.post("/api/admin/auth", buildAuthValidation(), authController.authenticate) |
|
|
|
.post("/api/admin/auth/reset", buildResetValidation(), authController.reset) |
|
|
|
.post("/api/admin/auth/reset/update", buildResetUpdateValidation(), authController.resetUpdate) |
|
|
|
.post( |
|
|
|
"/api/admin/auth/reset/update", |
|
|
|
buildResetUpdateValidation(), |
|
|
|
authController.resetUpdate |
|
|
|
) |
|
|
|
.post("/api/admin/auth/logout", authController.logout) |
|
|
|
.get("/api/admin/auth/google", authController.googlePreAuth) |
|
|
|
.get("/api/admin/auth/google/callback", authController.googleAuth) |
|
|
|
|