Shell for UI pages, some placeholder dashboard stats

This commit is contained in:
Jamie Curnow
2018-06-26 11:56:10 +10:00
parent 493bb77169
commit c69b174771
23 changed files with 328 additions and 24 deletions

View 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;