Server.js: add UI_TRAFFIC_STATS
This commit is contained in:
parent
e9480a5ed5
commit
8c771b054c
|
@ -63,7 +63,10 @@ module.exports = class Server {
|
||||||
|
|
||||||
return `"${LANG}"`;
|
return `"${LANG}"`;
|
||||||
}))
|
}))
|
||||||
|
.get('/api/ui-traffic-stats', (Util.promisify(async () => {
|
||||||
|
return UI_TRAFFIC_STATS === 'true';
|
||||||
|
}))
|
||||||
|
|
||||||
// Authentication
|
// Authentication
|
||||||
.get('/api/session', defineEventHandler((event) => {
|
.get('/api/session', defineEventHandler((event) => {
|
||||||
const requiresPassword = !!process.env.PASSWORD;
|
const requiresPassword = !!process.env.PASSWORD;
|
||||||
|
|
Loading…
Reference in New Issue