forked from mirrors/amnezia-wg-easy
Fix sort clients (#1290)
Co-authored-by: Vadim Babadzhanyan <vadim.babadzhanyan@my.games>
This commit is contained in:
parent
ca7ee32052
commit
bb2e8d2751
3 changed files with 30 additions and 18 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue