Files
nginx-proxy-manager/src/backend/internal/report.js
T

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;