Created
March 25, 2024 23:45
-
-
Save antonkalik/72be5116e4c5c80811a4475d9456263b to your computer and use it in GitHub Desktop.
Forgot Password Router
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import { Router } from 'express'; | |
import { forgotPasswordController } from 'src/controllers/forgotPasswordController'; | |
import { resetPasswordController } from 'src/controllers/resetPasswordController'; | |
export const forgotPasswordRouter = Router(); | |
forgotPasswordRouter.post('/', forgotPasswordController); | |
forgotPasswordRouter.post('/reset/:token', resetPasswordController); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment