Skip to content

Commit 06f076a

Browse files
authored
update example to current runtime API (#9)
1 parent 9ae45c9 commit 06f076a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Examples/Simple/Sources/APIGateway/APIGatewayProxyLambda.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct APIGatewayProxyLambda: LambdaHandler {
2626

2727
init(context: Lambda.InitializationContext) async throws {}
2828

29-
func handle(_ request: APIGatewayV2Request, context: Lambda.Context) async throws -> APIGatewayV2Response {
29+
func handle(_ request: APIGatewayV2Request, context: LambdaContext) async throws -> APIGatewayV2Response {
3030
context.logger.debug("hello, api gateway!")
3131
return APIGatewayV2Response(statusCode: .ok, body: "hello, world!")
3232
}

0 commit comments

Comments
 (0)