Skip to content

ExpressDetector

reference
1 min readUpdated

Kind: Class

Source: atloria-monorepo/packages/doc-automation/src/v2/stages/stage-01-parse/detectors/express-detector.ts

Express Detector

Methods

MethodSignatureReturns
detectRoutesdetectRoutes(entities: Entity[])DetectedExpressRoute[]
detectMiddlewaredetectMiddleware(entities: Entity[])DetectedExpressMiddleware[]
getRouteSummarygetRouteSummary(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.

Was this page helpful?

Download as PDF