Merge branch 'mann-Branch'

This commit is contained in:
Mann Patel
2025-04-20 21:52:15 -06:00
43 changed files with 1358 additions and 1066 deletions

View File

@@ -9,6 +9,8 @@ const {
addProduct,
removeProduct,
getProductWithPagination,
myProduct,
updateProduct,
} = require("../controllers/product");
const router = express.Router();
@@ -22,6 +24,8 @@ router.post("/addFavorite", addFavorite);
router.post("/getFavorites", getFavorites);
router.post("/delFavorite", removeFavorite);
router.post("/delProduct", removeProduct);
router.post("/myProduct", myProduct);
router.post("/addProduct", addProduct);
router.get("/getProduct", getAllProducts);
@@ -32,4 +36,6 @@ router.get("/getProductWithPagination", getProductWithPagination);
router.get("/:id", getProductById); // Simplified route
router.put("/update/:productId", updateProduct);
module.exports = router;