|
|
|
@ -33,6 +33,8 @@ router.put(`/:productId/activate`, verify, verifyAdmin, productControllers.activ
|
|
|
|
// Route to create an order || check-out
|
|
|
|
// Route to create an order || check-out
|
|
|
|
router.post(`/create-order`, verify, verifyNonAdmin, productControllers.createOrder);
|
|
|
|
router.post(`/create-order`, verify, verifyNonAdmin, productControllers.createOrder);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Route for getting the information of specific product
|
|
|
|
|
|
|
|
router.get("/:productId", courseController.getProduct);
|
|
|
|
|
|
|
|
|
|
|
|
// My Cart
|
|
|
|
// My Cart
|
|
|
|
|
|
|
|
|
|
|
|
|