diff --git a/src/lib/common/apiFunctions.svelte b/src/lib/common/apiFunctions.svelte index af9f37d..4a5d9d5 100644 --- a/src/lib/common/apiFunctions.svelte +++ b/src/lib/common/apiFunctions.svelte @@ -156,7 +156,6 @@ // variables in local storage let headscaleURL = localStorage.getItem('headscaleURL') || ''; let headscaleAPIKey = localStorage.getItem('headscaleAPIKey') || ''; - let headscaleAPIMachineOrNode = localStorage.getItem('headscaleAPIMachineOrNode') || 'machine'; // endpoint url for editing users let endpointURL = `/api/v1/node/${deviceID}/tags`; @@ -440,7 +439,6 @@ // variables in local storage let headscaleURL = localStorage.getItem('headscaleURL') || ''; let headscaleAPIKey = localStorage.getItem('headscaleAPIKey') || ''; - let headscaleAPIMachineOrNode = localStorage.getItem('headscaleAPIMachineOrNode') || 'machine'; // endpoint url for editing users let endpointURL = `/api/v1/node/register`; @@ -471,7 +469,6 @@ // variables in local storage let headscaleURL = localStorage.getItem('headscaleURL') || ''; let headscaleAPIKey = localStorage.getItem('headscaleAPIKey') || ''; - let headscaleAPIMachineOrNode = localStorage.getItem('headscaleAPIMachineOrNode') || 'machine'; // endpoint url for editing users let endpointURL = `/api/v1/node/${deviceID}/user?user=${user}`; @@ -502,7 +499,6 @@ // variables in local storage let headscaleURL = localStorage.getItem('headscaleURL') || ''; let headscaleAPIKey = localStorage.getItem('headscaleAPIKey') || ''; - let headscaleAPIMachineOrNode = localStorage.getItem('headscaleAPIMachineOrNode') || 'machine'; // endpoint url for editing users let endpointURL = `/api/v1/node/${deviceID}/rename/${name}`; @@ -533,7 +529,6 @@ // variables in local storage let headscaleURL = localStorage.getItem('headscaleURL') || ''; let headscaleAPIKey = localStorage.getItem('headscaleAPIKey') || ''; - let headscaleAPIMachineOrNode = localStorage.getItem('headscaleAPIMachineOrNode') || 'machine'; // endpoint url for removing devices let endpointURL = `/api/v1/node/${deviceID}`; diff --git a/src/lib/devices/DeviceCard/DeviceRoutesAPI.svelte b/src/lib/devices/DeviceCard/DeviceRoutesAPI.svelte index 626ba34..4ffff36 100644 --- a/src/lib/devices/DeviceCard/DeviceRoutesAPI.svelte +++ b/src/lib/devices/DeviceCard/DeviceRoutesAPI.svelte @@ -6,10 +6,9 @@ // variables in local storage let headscaleURL = localStorage.getItem('headscaleURL') || ''; let headscaleAPIKey = localStorage.getItem('headscaleAPIKey') || ''; - let headscaleAPIMachineOrNode = localStorage.getItem('headscaleAPIMachineOrNode') || 'machine'; // endpoint url for getting users - let endpointURL = `/api/v1/${headscaleAPIMachineOrNode}/${deviceID}/routes`; + let endpointURL = `/api/v1/node/${deviceID}/routes`; //returning variables let headscaleRouteList: Route[] = [];