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). // retrieve all orders route (admin only).
router.get(`/get-all-orders`, verify, verifyAdmin, userControllers.getAllOrders); router.get(`/get-all-orders`, verify, verifyAdmin, userControllers.getAllOrders);
// Route for resetting password
router.post(`/reset-password`, verify, userControllers.resetPassword);
module.exports = router; module.exports = router;
Loading…
Cancel
Save