Operational Endpoints for Admin, Products, Assignments, Location, Vendor, Venue completed. Geofence Testing PEnding

This commit is contained in:
Shibi Chakkaravarthy
2026-06-14 08:04:31 +05:30
parent 5326235183
commit 36e1bf664f
26 changed files with 1392 additions and 25 deletions
+17
View File
@@ -0,0 +1,17 @@
import { Router } from "express";
import { authorize } from "../middlewares/jwt.middleware";
import {
createProductController,
deleteProductController,
getAllProductsController,
updateProductController,
} from "../controllers/product.controller";
const router = Router();
router.post("/", authorize("product", "write"), createProductController);
router.get("/", authorize("product", "read"), getAllProductsController);
router.patch("/:id", authorize("product", "write"), updateProductController);
router.delete("/:id", authorize("product", "delete"), deleteProductController);
export default router;