2025-05-29 15:34:12 +05:30
|
|
|
import express from "express";
|
|
|
|
|
import { tokenValidator } from "../../../../shared/utils/token.ts";
|
|
|
|
|
import {
|
|
|
|
|
CreateZoneController,
|
|
|
|
|
DeleteZoneController,
|
|
|
|
|
GetZoneController,
|
|
|
|
|
SingleZonePanelController,
|
|
|
|
|
VizZoneController,
|
|
|
|
|
ZoneDataController,
|
|
|
|
|
} from "../../v1Controllers/builderController/v1zoneController.ts";
|
|
|
|
|
|
2025-06-05 16:40:33 +05:30
|
|
|
const V1Zone = express.Router();
|
2025-05-29 15:34:12 +05:30
|
|
|
|
2025-06-05 16:40:33 +05:30
|
|
|
V1Zone.post("/zones", tokenValidator, CreateZoneController);
|
|
|
|
|
V1Zone.patch("/zones/delete", tokenValidator, DeleteZoneController);
|
2025-05-29 15:34:12 +05:30
|
|
|
|
2025-06-05 16:40:33 +05:30
|
|
|
V1Zone.get(
|
2025-06-21 15:16:52 +05:30
|
|
|
"/zones/visualization/:projectId/:versionId",
|
2025-05-29 15:34:12 +05:30
|
|
|
tokenValidator,
|
|
|
|
|
VizZoneController
|
|
|
|
|
);
|
|
|
|
|
|
2025-06-05 16:40:33 +05:30
|
|
|
V1Zone.get(
|
2025-06-21 15:16:52 +05:30
|
|
|
"/zones/:projectId/:zoneUuid/:versionId",
|
2025-05-29 15:34:12 +05:30
|
|
|
tokenValidator,
|
|
|
|
|
ZoneDataController
|
|
|
|
|
);
|
2025-06-05 16:40:33 +05:30
|
|
|
V1Zone.get(
|
2025-06-21 15:16:52 +05:30
|
|
|
"/zones/panel/:projectId/:zoneUuid/:versionId",
|
2025-05-29 15:34:12 +05:30
|
|
|
tokenValidator,
|
|
|
|
|
SingleZonePanelController
|
|
|
|
|
);
|
2025-06-21 15:16:52 +05:30
|
|
|
V1Zone.get("/zones/:projectId/:versionId", tokenValidator, GetZoneController);
|
2025-06-05 16:40:33 +05:30
|
|
|
export default V1Zone;
|