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.
18 lines
896 B
18 lines
896 B
'use strict';
|
|
|
|
const backups = require('../../controllers/homepage/index');
|
|
|
|
module.exports = function (app, router, opts, AuthCode) {
|
|
|
|
app.fs.api.logAttr['GET/homepage/node/resources'] = { content: '获取节点资源信息', visible: true };
|
|
router.get('/homepage/node/resources', backups.getNodeResources(opts))
|
|
|
|
app.fs.api.logAttr['GET/homepage/datatotal/top5'] = { content: '获取数据总量和top5', visible: true };
|
|
router.get('/homepage/datatotal/top5', backups.getDataTotalTop5(opts))
|
|
|
|
app.fs.api.logAttr['GET/homepage/datatotal/cluters'] = { content: '获取集群资源节点信息', visible: true };
|
|
router.get('/homepage/datatotal/cluters', backups.getClusterInfo(opts))
|
|
|
|
app.fs.api.logAttr['GET/homepage/restful/info'] = { content: '获取restful统计信息', visible: true };
|
|
router.get('/homepage/restful/info', backups.getRestfulInfo(opts))
|
|
};
|
|
|