Browse Source

fixup: UI_TRAFFIC_STATS

pull/914/head
Philip H. 1 year ago
committed by GitHub
parent
commit
3f2495a0ea
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 7
      src/lib/Server.js

7
src/lib/Server.js

@ -64,9 +64,10 @@ module.exports = class Server {
return `"${LANG}"`; return `"${LANG}"`;
})) }))
.get('/api/ui-traffic-stats', (Util.promisify(async () => { .get('/api/ui-traffic-stats', defineEventHandler((event) => {
return UI_TRAFFIC_STATS === 'true'; setHeader(event, 'Content-Type', 'application/json');
})) return `"${UI_TRAFFIC_STATS}"`;
})
// Authentication // Authentication
.get('/api/session', defineEventHandler((event) => { .get('/api/session', defineEventHandler((event) => {

Loading…
Cancel
Save