mirror of
https://github.com/nestjs/nest.git
synced 2026-02-21 23:11:44 +00:00
test(integration) add integration tests for exclude method
This commit is contained in:
@@ -82,7 +82,7 @@ export function isRouteExcluded(
|
||||
: originalUrl;
|
||||
|
||||
const isExcluded = excludedRoutes.some(({ method, regex }) => {
|
||||
if (RequestMethod[method] === reqMethod) {
|
||||
if (RequestMethod.ALL === method || RequestMethod[method] === reqMethod) {
|
||||
return regex.exec(pathname);
|
||||
}
|
||||
return false;
|
||||
|
||||
Reference in New Issue
Block a user