socket Manager duplication of zone controller

This commit is contained in:
2025-06-03 11:30:52 +05:30
parent d5fa507617
commit 673d07ce37
5 changed files with 21 additions and 38 deletions

View File

@@ -11,16 +11,8 @@ import {
const v1Zone = express.Router();
v1Zone.post(
"/zones",
tokenValidator,
CreateZoneController
);
v1Zone.patch(
"/zones/delete",
tokenValidator,
DeleteZoneController
);
v1Zone.post("/zones", tokenValidator, CreateZoneController);
v1Zone.patch("/zones/delete", tokenValidator, DeleteZoneController);
v1Zone.get(
"/zones/visualization/:projectId",
@@ -28,19 +20,11 @@ v1Zone.get(
VizZoneController
);
v1Zone.get(
"/zones/:projectId/:zoneId",
tokenValidator,
ZoneDataController
);
v1Zone.get("/zones/:projectId/:zoneId", tokenValidator, ZoneDataController);
v1Zone.get(
"/zones/panel/:projectId/:zoneId",
tokenValidator,
SingleZonePanelController
);
v1Zone.get(
"/zones/:projectId",
tokenValidator,
GetZoneController
);
v1Zone.get("/zones/:projectId", tokenValidator, GetZoneController);
export default v1Zone;