Controller and routing for the Vizualtion and builder
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
import express from "express";
|
||||
import { tokenValidator } from "../../../../shared/utils/token.ts";
|
||||
import {
|
||||
ActiveOnlineController,
|
||||
CameraList,
|
||||
SetNewCamera,
|
||||
} from "../../v1Controllers/builderController/v1cameraController.ts";
|
||||
|
||||
const v1Camera = express.Router();
|
||||
|
||||
//Camera-Page
|
||||
v1Camera.post(
|
||||
"/setCamera",
|
||||
tokenValidator,
|
||||
// authorizedRoles("Admin", "User"),
|
||||
SetNewCamera
|
||||
);
|
||||
v1Camera.get(
|
||||
"/activeCameras",
|
||||
tokenValidator,
|
||||
// authorizedRoles("Admin", "User"),
|
||||
ActiveOnlineController
|
||||
);
|
||||
v1Camera.get(
|
||||
"/cameras/:projectId",
|
||||
tokenValidator,
|
||||
// authorizedRoles("Admin", "User"),
|
||||
CameraList
|
||||
);
|
||||
|
||||
export default v1Camera;
|
||||
|
||||
Reference in New Issue
Block a user