forked from mirrors/amnezia-wg-easy
feat(www): add sort clients by name (#1227)
Co-authored-by: Philip H. <47042125+pheiduck@users.noreply.github.com>
This commit is contained in:
parent
7c521e8733
commit
ca7ee32052
8 changed files with 60 additions and 2 deletions
|
@ -34,6 +34,7 @@ const {
|
|||
UI_TRAFFIC_STATS,
|
||||
UI_CHART_TYPE,
|
||||
UI_SHOW_LINKS,
|
||||
UI_ENABLE_SORT_CLIENTS,
|
||||
} = require('../config');
|
||||
|
||||
const requiresPassword = !!PASSWORD_HASH;
|
||||
|
@ -101,7 +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}"`;
|
||||
}))
|
||||
|
||||
// Authentication
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue