Aisle and Simulation Product API and socket Completed

This commit is contained in:
2025-06-05 16:40:33 +05:30
parent 18965b8a20
commit d53c66de77
32 changed files with 1792 additions and 529 deletions

View File

@@ -0,0 +1,24 @@
import express from "express";
import { tokenValidator } from "../../../../shared/utils/token.ts";
import {
AddProductController,
DeleteEventsController,
DeleteProductController,
GetProductEventDatas,
ProjectBasedProductsController,
RenameProductController,
} from "../../v1Controllers/simulationController/v1productController.ts";
const V1Product = express.Router();
V1Product.post("/ProductUpsert", tokenValidator, AddProductController);
V1Product.get("/EventsByProduct", tokenValidator, GetProductEventDatas);
V1Product.patch("/DeleteEvent", tokenValidator, DeleteEventsController);
V1Product.patch("/DeleteProduct", tokenValidator, DeleteProductController);
V1Product.get(
"/ProjectProducts/:projectId",
tokenValidator,
ProjectBasedProductsController
);
V1Product.patch("/RenameProduct", tokenValidator, RenameProductController);
export default V1Product;