|
|
@ -11,6 +11,8 @@ const {verify, verifyAdmin, verifyNonAdmin} = auth;
|
|
|
|
// Route for creating a product
|
|
|
|
// Route for creating a product
|
|
|
|
router.post(`/create`, verify, verifyAdmin, productControllers.createProduct);
|
|
|
|
router.post(`/create`, verify, verifyAdmin, productControllers.createProduct);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Route for check a existing product
|
|
|
|
|
|
|
|
router.post('/check-product-existence', verify, verifyAdmin, productControllers.isProductExisting);
|
|
|
|
|
|
|
|
|
|
|
|
// Route for retrieving all products
|
|
|
|
// Route for retrieving all products
|
|
|
|
router.get(`/all`, verify, verifyAdmin, productControllers.getAllProducts);
|
|
|
|
router.get(`/all`, verify, verifyAdmin, productControllers.getAllProducts);
|
|
|
|