Skip to content

Cerces


Cerces / adapters/aws-lambda / createHandler

Function: createHandler()

createHandler(app): (event, context) => Promise<APIGatewayProxyResult>

Defined in: src/adapters/aws-lambda.ts:138

Creates a handler function for AWS Lambda that integrates with the provided App instance.

Parameters

app

App

The App instance to handle incoming requests.

Returns

A handler function for AWS Lambda.

(event, context): Promise<APIGatewayProxyResult>

Parameters

event

APIGatewayProxyEvent

context

Context

Returns

Promise<APIGatewayProxyResult>