Files
Campus-Plug/backend/routes/category.js
2025-04-20 21:52:15 -06:00

17 lines
406 B
JavaScript

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