Added controller and route for reset password

master
parent 8776401d86
commit 99c6e5a21f

@ -28,4 +28,7 @@ router.get(`/orders`, verify, userControllers.getCurrentUserOrders);
// retrieve all orders route (admin only).
router.get(`/get-all-orders`, verify, verifyAdmin, userControllers.getAllOrders);
// Route for resetting password
router.post(`/reset-password`, verify, userControllers.resetPassword);
module.exports = router;
Loading…
Cancel
Save