Skip to content

Commit

Permalink
add: reset password route
Browse files Browse the repository at this point in the history
  • Loading branch information
CodeEventHorizon committed Nov 20, 2023
1 parent 93a97ce commit d261a3f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/routes/user.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,11 +3,13 @@ import validateResource from "../middleware/validateResource";
import {
createUserSchema,
forgotPasswordSchema,
resetPasswordSchema,
verifyUserSchema,
} from "../schema/user.schema";
import {
createUserHandler,
forgotPasswordHandler,
resetPasswordHandler,
verifyUserHandler,
} from "../controller/user.controller";

Expand All @@ -31,4 +33,10 @@ router.post(
forgotPasswordHandler
);

router.post(
"/api/users/resetpassword/:id/:passwordResetCode",
validateResource(resetPasswordSchema),
resetPasswordHandler
);

export default router;

0 comments on commit d261a3f

Please sign in to comment.