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
731 B
17 lines
731 B
'use strict';
|
|
|
|
const toolLink = require('../../controllers/control/toolLink');
|
|
|
|
module.exports = function (app, router, opts) {
|
|
app.fs.api.logAttr['GET/console/toollink'] = { content: '获取常用工具', visible: true };
|
|
router.get('/console/toollink', toolLink.list);
|
|
|
|
app.fs.api.logAttr['PUT/console/toollink'] = { content: '编辑常用工具', visible: true };
|
|
router.put('/console/toollink', toolLink.edit);
|
|
|
|
app.fs.api.logAttr['DEL/console/toollink'] = { content: '删除常用工具', visible: true };
|
|
router.del('/console/toollink/:linkId', toolLink.del);
|
|
|
|
app.fs.api.logAttr['GET/console/count'] = { content: '查询告警数量', visible: true };
|
|
router.get('/console/count', toolLink.count);
|
|
};
|