'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)) app.fs.api.logAttr['GET/homepage/alarms'] = { content: '获取预警列表', visible: true }; router.get('/homepage/alarms', backups.getQualityCheckAlarm(opts)) };