mirror of
https://github.com/gurucomputing/headscale-ui.git
synced 2026-01-23 10:35:45 +00:00
fixed regression in legacy api (#88)
This commit is contained in:
parent
271e1045a0
commit
62e362ebc6
1 changed files with 2 additions and 2 deletions
|
|
@ -66,11 +66,11 @@
|
|||
routeList.forEach((route) => {
|
||||
if (route.enabled) {
|
||||
endpointURL += encodeURIComponent(route.prefix);
|
||||
endpointURL += '&';
|
||||
endpointURL += '&routes=';
|
||||
}
|
||||
});
|
||||
// remove trailing ampersand and routes= expressions
|
||||
endpointURL = (endpointURL.replace(/\&$/, '')).replace(/routes=$/,'');
|
||||
endpointURL = endpointURL.replace(/\&routes=$/, '').replace(/\?routes=$/, '?');
|
||||
} else {
|
||||
routeList.forEach((route) => {
|
||||
if (route.id == routeID) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue