File tree Expand file tree Collapse file tree 2 files changed +2
-15
lines changed
devices/DeviceCard/DeviceRoutes Expand file tree Collapse file tree 2 files changed +2
-15
lines changed Original file line number Diff line number Diff line change @@ -21,19 +21,7 @@ export class Device {
2121export 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}
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments