mirror of https://github.com/wg-easy/wg-easy
1 changed files with 3 additions and 1 deletions
@ -1,4 +1,6 @@ |
|||||
export default defineEventHandler((event) => { |
export default defineEventHandler((event) => { |
||||
setHeader(event, 'Content-Type', 'application/json'); |
setHeader(event, 'Content-Type', 'application/json'); |
||||
return UI_TRAFFIC_STATS === 'true' ? true : false; |
// Weird issue with auto import not working. This alias is needed
|
||||
|
const stats = UI_TRAFFIC_STATS; |
||||
|
return stats === 'true' ? true : false; |
||||
}); |
}); |
||||
|
Loading…
Reference in new issue