Skip to content

Commit

Permalink
Merge pull request #97 from atlp-rwanda/187963305-bg-fix-delete-cart-…
Browse files Browse the repository at this point in the history
…item-route

finishes #187963305 delete cart item route
  • Loading branch information
niyontwali authored Jul 16, 2024
2 parents 826c244 + 4a07972 commit 4cf7555
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/cartRoute.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;

0 comments on commit 4cf7555

Please sign in to comment.