forked from mirrors/amnezia-wg-easy
usage -> traffic
This commit is contained in:
parent
117d713ee1
commit
ebc5173bd0
7 changed files with 17 additions and 17 deletions
|
@ -18,7 +18,7 @@ const {
|
|||
RELEASE,
|
||||
PASSWORD,
|
||||
LANG,
|
||||
UI_USAGE_STATS,
|
||||
UI_TRAFFIC_STATS,
|
||||
} = require('../config');
|
||||
|
||||
module.exports = class Server {
|
||||
|
@ -45,8 +45,8 @@ module.exports = class Server {
|
|||
.get('/api/lang', (Util.promisify(async () => {
|
||||
return LANG;
|
||||
})))
|
||||
.get('/api/ui-usage-stats', (Util.promisify(async () => {
|
||||
return UI_USAGE_STATS === 'true';
|
||||
.get('/api/ui-traffic-stats', (Util.promisify(async () => {
|
||||
return UI_TRAFFIC_STATS === 'true';
|
||||
})))
|
||||
|
||||
// Authentication
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue