Updated router view my cart to POST

master
parent 93a6269287
commit 43bcc01072

@ -46,7 +46,7 @@ router.post('/getProductName', productControllers.getProductName);
router.post('/add-to-cart', verify, verifyNonAdmin, productControllers.addProductToCart); router.post('/add-to-cart', verify, verifyNonAdmin, productControllers.addProductToCart);
router.put('/update-quantity', productControllers.updateProductQuantity); router.put('/update-quantity', productControllers.updateProductQuantity);
router.delete('/remove/:productId', verify, verifyNonAdmin, productControllers.removeProductFromCart); 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; module.exports = router;
Loading…
Cancel
Save