fix: spread provider returns in boot snapshot; dedupe path-join; guard step runner
This commit is contained in:
2 files changed
+9
-11
No files matched your search
+1
-1
@@ -74,6 +74,6 @@ export function getRoutes(cls: Ctor): RouteMeta[] {
|
||||
return routes.map((r) => ({ ...r, path: joinPath(prefix, r.path) }));
|
||||
}
|
||||
|
||||
function joinPath(a: string, b: string): string {
|
||||
export function joinPath(a: string, b: string): string {
|
||||
return `${a.replace(/\/$/, '')}/${b.replace(/^\//, '')}`.replace(/\/+/g, '/');
|
||||
}
|
||||
Reference in new issue
Block a user