Skip to content

Commit

Permalink
removed remaining references to 'machine' api
Browse files Browse the repository at this point in the history
  • Loading branch information
routerino committed Oct 9, 2024
1 parent 64323e4 commit ec79e4c
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 ec79e4c

Please sign in to comment.