mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2026-11-20 06:56:39 +00:00
26 lines
539 B
JavaScript
26 lines
539 B
JavaScript
'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;
|