From 4a079722bac96f42c6e6a170f19e6facaf31cc34 Mon Sep 17 00:00:00 2001 From: JeanIrad Date: Tue, 16 Jul 2024 11:50:49 +0200 Subject: [PATCH] finishes #187963305 delete cart item route --- src/routes/cartRoute.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;