'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/yingshi'] = { content: '创建萤石摄像头', visible: false }; router.post('/camera/yingshi', cameraCreate.createYingshi); // 摄像头创建 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); };