Fix sort clients (#1290)

Co-authored-by: Vadim Babadzhanyan <vadim.babadzhanyan@my.games>
This commit is contained in:
Vadim Babajanyan 2024-08-16 21:47:31 +03:00 committed by GitHub
parent ca7ee32052
commit bb2e8d2751
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 30 additions and 18 deletions

View file

@ -92,7 +92,7 @@ module.exports = class Server {
.get('/api/ui-traffic-stats', defineEventHandler((event) => {
setHeader(event, 'Content-Type', 'application/json');
return `"${UI_TRAFFIC_STATS}"`;
return `${UI_TRAFFIC_STATS}`;
}))
.get('/api/ui-chart-type', defineEventHandler((event) => {
@ -102,12 +102,12 @@ module.exports = class Server {
.get('/api/ui-show-links', defineEventHandler((event) => {
setHeader(event, 'Content-Type', 'application/json');
return `"${UI_SHOW_LINKS}"`;
return `${UI_SHOW_LINKS}`;
}))
.get('/api/ui-sort-clients', defineEventHandler((event) => {
setHeader(event, 'Content-Type', 'application/json');
return `"${UI_ENABLE_SORT_CLIENTS}"`;
return `${UI_ENABLE_SORT_CLIENTS}`;
}))
// Authentication