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.
20 lines
647 B
20 lines
647 B
'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);
|
|
|
|
|
|
|
|
};
|