'use strict'; const network = require('../../controllers/device/network'); module.exports = function (app, router, opts, AuthCode) { app.fs.api.logAttr['POST/network'] = { content: '增加或修改宽带专网', visible: true }; router.post('/network', network.addOrUpdateNetwork) // 删除设备信息 app.fs.api.logAttr['DEL/network/:id'] = { content: '删除宽带专网', visible: true }; router.del('/network/:id', network.delNetwork) // 获取设备信息列表 app.fs.api.logAttr['GET/network'] = { content: '获取宽带专网列表', visible: true }; router.get('/network', network.getNetworks); };