Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Commit 196043b

Browse files
committed
Fixed sample to use the new ginadapter package
1 parent 2ab2f57 commit 196043b

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

sample/main.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
"github.com/gin-gonic/gin"
1212
)
1313

14-
var ginLambda *ginlambda.GinLambda
14+
var ginLambda *ginadapter.GinLambda
1515

1616
// Handler is the main entry point for Lambda. Receives a proxy request and
1717
// returns a proxy response
@@ -24,7 +24,7 @@ func Handler(req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse,
2424
r.GET("/pets/:id", getPet)
2525
r.POST("/pets", createPet)
2626

27-
ginLambda = ginlambda.New(r)
27+
ginLambda = ginadapter.New(r)
2828
}
2929

3030
return ginLambda.Proxy(req)

0 commit comments

Comments
 (0)