|
|
@ -21,7 +21,7 @@ router.get(`/all`, verify, verifyAdmin, productControllers.getAllProducts);
|
|
|
|
router.get(`/`, productControllers.getAllActiveProducts);
|
|
|
|
router.get(`/`, productControllers.getAllActiveProducts);
|
|
|
|
|
|
|
|
|
|
|
|
// Route for searching products
|
|
|
|
// Route for searching products
|
|
|
|
router.get(`/search`, productControllers.searchProducts);
|
|
|
|
router.post(`/search`, productControllers.searchProducts);
|
|
|
|
|
|
|
|
|
|
|
|
// Route for updating products
|
|
|
|
// Route for updating products
|
|
|
|
router.put(`/:productId`, verify, verifyAdmin, productControllers.updateProduct);
|
|
|
|
router.put(`/:productId`, verify, verifyAdmin, productControllers.updateProduct);
|
|
|
|