Skip to content

Commit 54e0978

Browse files
committed
Change api-to-lambda response (.ok)
1 parent 69ca23f commit 54e0978

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/api-to-lambda/{{cookiecutter.__project_name}}/Sources/HelloWorld/LambdaHandler.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ struct HelloWorld: SimpleLambdaHandler {
3232
func handle(_ event: APIGatewayV2Request, context: LambdaContext) async throws -> APIGatewayV2Response {
3333

3434
// Process the API Gateway event
35-
return APIGatewayV2Response(statusCode: HTTPResponseStatus(code: 200), body: "Hello from AWS!")
35+
return APIGatewayV2Response(statusCode: .ok, body: "Hello from AWS!")
3636
}
3737
}

0 commit comments

Comments
 (0)