'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['DEL/nvr'] = { content: '删除nvr', visible: false }; router.del('/nvr/:nvrId', nvr.del); };