'use strict'; const camera = require('../../controllers/camera'); module.exports = function (app, router, opts) { 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['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); };