feat(openapi): Add OpenAPI module: decorators, spec generator, runtime validation and Swagger UI
This commit is contained in:
@@ -135,7 +135,7 @@ export function combinePaths(basePath: string, routePath: string): string {
|
||||
const route = normalizePath(routePath);
|
||||
|
||||
if (!base) return route || '/';
|
||||
if (!route) return base;
|
||||
if (!route || route === '/') return base || '/';
|
||||
|
||||
return `${base}${route}`;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user