Skip to content

Commit

Permalink
Merge pull request #168 from gurucomputing:167-can-not-get-device-router
Browse files Browse the repository at this point in the history
removed remaining references to 'machine' api
  • Loading branch information
routerino authored Oct 9, 2024
2 parents 64323e4 + ec79e4c commit 9bc6a93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
5 changes: 0 additions & 5 deletions src/lib/common/apiFunctions.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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`;
Expand Down Expand Up @@ -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`;
Expand Down Expand Up @@ -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}`;
Expand Down Expand Up @@ -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}`;
Expand Down Expand Up @@ -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}`;
Expand Down
3 changes: 1 addition & 2 deletions src/lib/devices/DeviceCard/DeviceRoutesAPI.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -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[] = [];
Expand Down

0 comments on commit 9bc6a93

Please sign in to comment.