# isMiddlewareRouteExcluded

**Kind:** Function

**Source:** [`packages/core/middleware/utils.ts`](https://github.com/nestjs/nest/blob/master/packages/core/middleware/utils.ts#L118)

**Part of:** [Core](subsystem-packages-core)

## Signature

```ts
function isMiddlewareRouteExcluded(req: Record<string, any>, excludedRoutes: ExcludeRouteMetadata[], httpAdapter: HttpServer): boolean
```

## Parameters

| Name | Type |
|---|---|
| `req` | `Record<string, any>` |
| `excludedRoutes` | `ExcludeRouteMetadata[]` |
| `httpAdapter` | `HttpServer` |

**Returns:** `boolean`
