Skip to content

ApiRoute

Open in ChatGPTOpen in Claude

Defined in: packages/core/src/types/lambda.ts:210

One route within a multi-route REST (v1) API lambda (Phase 3I).

path is ABSOLUTE (“/auth/login”) when the config has no basePath, or RELATIVE (“login”, no leading slash) when basePath is set — see D9. The effective path is composed BEFORE logical-ID derivation, so basePath:"/auth" + path:"login" and absolute path:"/auth/login" yield the identical CloudFormation logical ID.

optional apiKey?: boolean

Defined in: packages/core/src/types/lambda.ts:220

Require an API key on this route. route → config → off. Orthogonal to authorizerauthorizer:"none" + apiKey:true is pure API-key protection.


optional authorizer?: LambdaAuthorizer

Defined in: packages/core/src/types/lambda.ts:215

Per-route override; falls back to config-level authorizer, then kind default (“cognito”).


method: HttpMethod

Defined in: packages/core/src/types/lambda.ts:211


path: string

Defined in: packages/core/src/types/lambda.ts:213

Absolute (“/auth/login”) OR relative (“login”) when basePath is set — see D9.

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