remove old route class

This commit is contained in:
Chris Bisset 2025-05-22 04:13:58 +00:00
parent adef58f27d
commit 907ab6af57
2 changed files with 2 additions and 15 deletions

View file

@ -21,19 +21,7 @@ export class Device {
export class ACL {
public groups: { [key: string]: [string] } = {};
public constructor(init?: Partial<Route>) {
Object.assign(this, init);
}
}
export class Route {
// current (hs 18+) method of handling a route
advertised: boolean = true;
prefix: string = '';
enabled: boolean = false;
id: number = 0;
public constructor(init?: Partial<Route>) {
public constructor(init?: Partial<ACL>) {
Object.assign(this, init);
}
}
@ -45,7 +33,7 @@ export class APIKey {
createdAt: string = '';
lastSeen: string = '';
public constructor(init?: Partial<Route>) {
public constructor(init?: Partial<APIKey>) {
Object.assign(this, init);
}
}

View file

@ -1,5 +1,4 @@
<script context="module" lang="ts">
import type { Route } from '$lib/common/classes';
export async function approveDeviceRoute(deviceID: string, routes: [string]): Promise<any> {
// variables in local storage