Skip to content

Commit 907ab6a

Browse files
committed
remove old route class
1 parent adef58f commit 907ab6a

File tree

2 files changed

+2
-15
lines changed

2 files changed

+2
-15
lines changed

src/lib/common/classes.ts

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +21,7 @@ export class Device {
2121
export class ACL {
2222
public groups: { [key: string]: [string] } = {};
2323

24-
public constructor(init?: Partial<Route>) {
25-
Object.assign(this, init);
26-
}
27-
}
28-
29-
export class Route {
30-
// current (hs 18+) method of handling a route
31-
advertised: boolean = true;
32-
prefix: string = '';
33-
enabled: boolean = false;
34-
id: number = 0;
35-
36-
public constructor(init?: Partial<Route>) {
24+
public constructor(init?: Partial<ACL>) {
3725
Object.assign(this, init);
3826
}
3927
}
@@ -45,7 +33,7 @@ export class APIKey {
4533
createdAt: string = '';
4634
lastSeen: string = '';
4735

48-
public constructor(init?: Partial<Route>) {
36+
public constructor(init?: Partial<APIKey>) {
4937
Object.assign(this, init);
5038
}
5139
}

src/lib/devices/DeviceCard/DeviceRoutes/DeviceRouteAPI.svelte

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
<script context="module" lang="ts">
2-
import type { Route } from '$lib/common/classes';
32
43
export async function approveDeviceRoute(deviceID: string, routes: [string]): Promise<any> {
54
// variables in local storage

0 commit comments

Comments
 (0)