# ExpressDetector

**Kind:** Class

**Source:** [`atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/express-detector.ts`](https://github.com/sherkety/atloria/blob/main/atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/express-detector.ts#L53)

Express Detector

## Methods

| Method | Signature | Returns |
|---|---|---|
| `detectRoutes` | `detectRoutes(entities: Entity[])` | `DetectedExpressRoute[]` |
| `detectMiddleware` | `detectMiddleware(entities: Entity[])` | `DetectedExpressMiddleware[]` |
| `getRouteSummary` | `getRouteSummary(route: DetectedExpressRoute)` | `string` |

## Where it refuses work

- `ExpressDetector` stops the work with an early return when `typeMatch`.
- `ExpressDetector` stops the work with an early return when `zodMatch`.
- `ExpressDetector` stops the work with an early return when `!isMiddleware`.
