|
|
|
@ -46,7 +46,7 @@ router.post('/getProductName', productControllers.getProductName);
|
|
|
|
|
router.post('/add-to-cart', verify, verifyNonAdmin, productControllers.addProductToCart);
|
|
|
|
|
router.put('/update-quantity', productControllers.updateProductQuantity);
|
|
|
|
|
router.delete('/remove/:productId', verify, verifyNonAdmin, productControllers.removeProductFromCart);
|
|
|
|
|
router.get('/view-my-cart', verify, verifyNonAdmin, productControllers.getCartDetails);
|
|
|
|
|
router.post('/view-my-cart', verify, verifyNonAdmin, productControllers.getCartDetails);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
module.exports = router;
|