Kind: Class
Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/express-detector.ts
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
ExpressDetectorstops the work with an early return whentypeMatch.ExpressDetectorstops the work with an early return whenzodMatch.ExpressDetectorstops the work with an early return when!isMiddleware.
Was this page helpful?