Updated routes for retrieve all products and get all active products

master
parent 972be4e544
commit cb146e61d4

@ -13,10 +13,10 @@ router.post(`/create`, verify, verifyAdmin, productControllers.createProduct);
// Route for retrieving all products // 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 // Route for retrieving all active products
router.get(`/active`, productControllers.getAllActiveProducts); router.get(`/`, productControllers.getAllActiveProducts);
// Route for searching products // Route for searching products
router.get(`/search`, productControllers.searchProducts); router.get(`/search`, productControllers.searchProducts);

Loading…
Cancel
Save