'use strict'; const camera = require('../../controllers/camera'); const cameraCreate = require('../../controllers/camera/create') module.exports = function (app, router, opts) { // 摄像头创建 app.fs.api.logAttr['POST/camera/create/yingshi'] = { content: '创建萤石摄像头', visible: false }; router.post('/camera/create/yingshi', cameraCreate.createYingshi); app.fs.api.logAttr['GET/camera/nvr_stream'] = { content: '获取NVR视频流', visible: false }; router.get('/camera/nvr_stream', cameraCreate.getNvrSteam); app.fs.api.logAttr['POST/camera/create/nvr'] = { content: '记录NVR摄像头', visible: false }; router.post('/camera/create/nvr', cameraCreate.createNvrCamera); app.fs.api.logAttr['POST/camera/create/ipc'] = { content: '创建IPC摄像头', visible: false }; router.post('/camera/create/ipc', cameraCreate.createIpcCamera); // 摄像头创建 END app.fs.api.logAttr['GET/camera/project'] = { content: '获取摄像头列表及项目绑定信息', visible: false }; router.get('/camera/project', camera.getCameraProject); app.fs.api.logAttr['GET/camera'] = { content: '获取摄像头信息', visible: false }; router.get('/camera', camera.getCamera); app.fs.api.logAttr['GET/camera/:cameraId/detail'] = { content: '获取摄像头详情', visible: false }; router.get('/camera/:cameraId/detail', camera.detail); app.fs.api.logAttr['GET/camera/listAll'] = { content: '获取摄像头详情', visible: false }; router.get('/camera/listAll', camera.getCameraListAll); app.fs.api.logAttr['PUT/camera/banned'] = { content: '禁用摄像头', visible: false }; router.put('/camera/banned', camera.banned); app.fs.api.logAttr['DEL/camera'] = { content: '删除摄像头', visible: false }; router.delete('/camera', camera.del); app.fs.api.logAttr['GET/camera/export'] = { content: '导出摄像头信息', visible: false }; router.get('/camera/export', camera.cameraExport); app.fs.api.logAttr['GET/camera/ability'] = { content: '获取摄像头能力列表', visible: false }; router.get('/camera/ability', camera.getAbility); app.fs.api.logAttr['GET/camera/kind'] = { content: '获取摄像头种类列表', visible: false }; router.get('/camera/kind', camera.getKind); };