mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
Update packages/core/middleware/route-info-path-extractor.ts
Co-authored-by: Kamil Mysliwiec <mail@kamilmysliwiec.com>
This commit is contained in:
@@ -31,7 +31,8 @@ export class RouteInfoPathExtractor {
|
||||
versionPath = addLeadingSlash(versionPrefix + version.toString());
|
||||
}
|
||||
|
||||
if (['*', '/*', '/*/', '(.*)', '/(.*)'].includes(path)) {
|
||||
const isAWildcard = ['*', '/*', '/*/', '(.*)', '/(.*)'].includes(path);
|
||||
if (isAWildcard) {
|
||||
return Array.isArray(excludedRoutes)
|
||||
? [
|
||||
prefixPath + versionPath + addLeadingSlash(path),
|
||||
|
||||
Reference in New Issue
Block a user