diff --git a/src/routes/cartRoute.ts b/src/routes/cartRoute.ts index 590507cb..a71859f2 100644 --- a/src/routes/cartRoute.ts +++ b/src/routes/cartRoute.ts @@ -11,6 +11,6 @@ cartRouter .get([isAuthenticated, checkUserRoles('buyer')], getCartItems) .post([isAuthenticated, checkUserRoles('buyer')], addCartItem) .delete([isAuthenticated, checkUserRoles('buyer')], clearCart); -cartRouter.route('/:id').patch([isAuthenticated, checkUserRoles('buyer')], updateCartItem); cartRouter.route('/delete').delete([isAuthenticated, checkUserRoles('buyer')], deleteCartItem); +cartRouter.route('/:id').patch([isAuthenticated, checkUserRoles('buyer')], updateCartItem); export default cartRouter;