|
|
|
@ -13,10 +13,10 @@ router.post(`/create`, verify, verifyAdmin, productControllers.createProduct);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// Route for retrieving all products
|
|
|
|
|
router.get(`/retrieve-all`, verify, verifyAdmin, productControllers.getAllProducts);
|
|
|
|
|
router.get(`/all`, verify, verifyAdmin, productControllers.getAllProducts);
|
|
|
|
|
|
|
|
|
|
// Route for retrieving all active products
|
|
|
|
|
router.get(`/active`, productControllers.getAllActiveProducts);
|
|
|
|
|
router.get(`/`, productControllers.getAllActiveProducts);
|
|
|
|
|
|
|
|
|
|
// Route for searching products
|
|
|
|
|
router.get(`/search`, productControllers.searchProducts);
|
|
|
|
|