|
|
@ -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;
|