Skip to content

normaliseRoutes

Open in ChatGPTOpen in Claude

normaliseRoutes(config): NormalisedRoute[]

Defined in: packages/core/src/lambda/define.ts:103

Normalise any API/HTTP-API config to a flat list of routes with absolute effective paths. The scalar arm yields exactly one route; the multi arm yields routes.length routes with basePath composed. Used by both constructs and the SDK so paths never diverge.

ApiLambdaConfig | HttpApiLambdaConfig

NormalisedRoute[]

© 2026 Axis Tech. Powered by axis-tech.co.