This commit is contained in:
MARCROCK22 2024-03-22 17:42:25 -04:00
parent 5669b0e195
commit 31937e948e

View File

@ -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;
}, },