|
|
|
'use strict';
|
|
|
|
|
|
|
|
const toolLink = require('../../controllers/control/toolLink');
|
|
|
|
const csData = require('../../controllers/control/data');
|
|
|
|
|
|
|
|
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);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
//项目概览
|
|
|
|
app.fs.api.logAttr['GET/projects/info'] = { content: '查询项目概览', visible: false };
|
|
|
|
router.get('/projects/info', csData.getProjectsInfo);
|
|
|
|
|
|
|
|
//BI分析模块
|
|
|
|
app.fs.api.logAttr['GET/bi/analysis'] = { content: '查询BI分析数据', visible: false };
|
|
|
|
router.get('/bi/analysis', csData.getBiAnalysis);
|
|
|
|
|
|
|
|
//最新动态
|
|
|
|
app.fs.api.logAttr['GET/latest/dynamic'] = { content: '查询最新动态', visible: false };
|
|
|
|
router.get('/latest/dynamic', csData.getLatestDynamic);
|
|
|
|
};
|