Shell for UI pages, some placeholder dashboard stats
This commit is contained in:
25
src/backend/internal/report.js
Normal file
25
src/backend/internal/report.js
Normal file
@ -0,0 +1,25 @@
|
||||
'use strict';
|
||||
|
||||
const _ = require('lodash');
|
||||
const error = require('../lib/error');
|
||||
|
||||
const internalReport = {
|
||||
|
||||
/**
|
||||
* @param {Access} access
|
||||
* @return {Promise}
|
||||
*/
|
||||
getHostsReport: access => {
|
||||
return access.can('reports:hosts', 1)
|
||||
.then(() => {
|
||||
return {
|
||||
proxy: 12,
|
||||
redirection: 2,
|
||||
stream: 1,
|
||||
'404': 0
|
||||
};
|
||||
});
|
||||
}
|
||||
};
|
||||
|
||||
module.exports = internalReport;
|
Reference in New Issue
Block a user