mirror of
https://github.com/tiramisulabs/seyfert.git
synced 2025-07-03 05:26:07 +00:00
router
This commit is contained in:
parent
5669b0e195
commit
31937e948e
@ -29,7 +29,7 @@ export class Router {
|
|||||||
return this.createProxy([...route, key]);
|
return this.createProxy([...route, key]);
|
||||||
},
|
},
|
||||||
apply: (...[, _, args]) => {
|
apply: (...[, _, args]) => {
|
||||||
return this.createProxy([...route, ...args.filter(x => x != null)]);
|
return this.createProxy([...route, ...args]);
|
||||||
},
|
},
|
||||||
}) as unknown as APIRoutes;
|
}) as unknown as APIRoutes;
|
||||||
}
|
}
|
||||||
@ -57,7 +57,7 @@ export const CDNRouter = {
|
|||||||
return this.createProxy([...route, key]);
|
return this.createProxy([...route, key]);
|
||||||
},
|
},
|
||||||
apply: (...[, _, args]) => {
|
apply: (...[, _, args]) => {
|
||||||
return this.createProxy([...route, ...args.filter(x => x != null)]);
|
return this.createProxy([...route, ...args]);
|
||||||
},
|
},
|
||||||
}) as unknown as CDNRoute;
|
}) as unknown as CDNRoute;
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user