Finish admin dashboard and update sql

This commit is contained in:
estherdev03
2025-04-20 06:59:32 -06:00
parent 68d2b950c0
commit b5c4a783a9
1420 changed files with 182156 additions and 0 deletions

14
routes/category.js Normal file
View File

@@ -0,0 +1,14 @@
const express = require("express");
const {
getAllCategoriesWithPagination,
addCategory,
removeCategory,
} = require("../controllers/category");
const router = express.Router();
router.get("/getCategories", getAllCategoriesWithPagination);
router.post("/addCategory", addCategory);
router.delete("/:id", removeCategory);
module.exports = router;