forked from mirrors/amnezia-wg-easy
Server.js: add UI_TRAFFIC_STATS
This commit is contained in:
parent
e9480a5ed5
commit
8c771b054c
1 changed files with 4 additions and 1 deletions
|
@ -63,7 +63,10 @@ module.exports = class Server {
|
|||
|
||||
return `"${LANG}"`;
|
||||
}))
|
||||
|
||||
.get('/api/ui-traffic-stats', (Util.promisify(async () => {
|
||||
return UI_TRAFFIC_STATS === 'true';
|
||||
}))
|
||||
|
||||
// Authentication
|
||||
.get('/api/session', defineEventHandler((event) => {
|
||||
const requiresPassword = !!process.env.PASSWORD;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue