You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
706 B
17 lines
706 B
'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);
|
|
};
|
|
|