add prod mylistings

This commit is contained in:
Mann Patel
2025-04-18 20:25:02 -06:00
parent 121316a8d4
commit fd43001374
3 changed files with 122 additions and 1 deletions

View File

@@ -6,6 +6,7 @@ const {
removeFavorite,
getAllProducts,
getProductById,
addProduct,
} = require("../controllers/product");
const router = express.Router();
@@ -19,6 +20,7 @@ router.post("/addFavorite", addFavorite);
router.post("/getFavorites", getFavorites);
router.post("/delFavorite", removeFavorite);
router.post("/addProduct", addProduct);
router.get("/getProduct", getAllProducts);
router.get("/:id", getProductById); // Simplified route