Skip to content

Commit ceccc78

Browse files
committed
Aligns Lambda entry point with HTTP API v2
Updates the ASP.NET Core Lambda entry point to use API Gateway HTTP API v2, aligning with the serverless configuration's HttpApi event type. Ensures request/response mapping compatibility and prevents format mismatches when invoking through HttpApi. Improves deployment consistency and reduces integration friction with the configured AWS infrastructure.
1 parent abd425f commit ceccc78

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

API/ThriveChurchOfficialAPI/ThriveChurchOfficialAPI/LambdaEntryPoint.cs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ namespace ThriveChurchOfficialAPI
3030
/// <summary>
3131
/// Lambda entry point that wraps the ASP.NET Core application.
3232
/// This allows the same controllers, services, and repositories to run in AWS Lambda.
33+
/// Uses HTTP API v2 format (APIGatewayHttpApiV2ProxyFunction) to match serverless.template's HttpApi event type.
3334
/// </summary>
34-
public class LambdaEntryPoint : APIGatewayProxyFunction
35+
public class LambdaEntryPoint : APIGatewayHttpApiV2ProxyFunction
3536
{
3637
/// <summary>
3738
/// Initialize the Lambda function with the ASP.NET Core Startup class.

0 commit comments

Comments
 (0)