Refactor code, split routes, change url in backend and update in frontend. Still have bugs, infinite loading after signup?

This commit is contained in:
estherdev03
2025-03-19 02:09:30 -06:00
parent 3ac9ed00a2
commit c75fa01392
14 changed files with 582 additions and 510 deletions

10
backend/routes/product.js Normal file
View File

@@ -0,0 +1,10 @@
const express = require("express");
const { addToFavorite, getAllProducts } = require("../controllers/product");
const router = express.Router();
router.post("/add_fav_product", addToFavorite);
router.get("/get_product", getAllProducts);
module.exports = router;