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.
|
|
|
'use strict';
|
|
|
|
|
|
|
|
const nvr = require('../../controllers/nvr');
|
|
|
|
|
|
|
|
module.exports = function (app, router, opts) {
|
|
|
|
app.fs.api.logAttr['POST/nvr'] = { content: '添加/修改nvr', visible: false };
|
|
|
|
router.post('/nvr', nvr.edit);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/nvr'] = { content: '获取nvr', visible: false };
|
|
|
|
router.get('/nvr', nvr.get);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['GET/nvr/detail/:nvrId'] = { content: '获取nvr详情', visible: false };
|
|
|
|
router.get('/nvr/detail/:nvrId', nvr.detail);
|
|
|
|
|
|
|
|
app.fs.api.logAttr['DEL/nvr'] = { content: '删除nvr', visible: false };
|
|
|
|
router.del('/nvr/:nvrId', nvr.del);
|
|
|
|
};
|