Closed caevv closed 2 years ago
Silly mistake, fixed:
func Handler(res http.ResponseWriter, req *http.Request) {
return nil
}
func main() {
adapter := handlerfuncadapter.New(Handler)
lambda.Start(func(ctx context.Context, req events.APIGatewayProxyRequest) (events.APIGatewayProxyResponse, error) {
return adapter.ProxyWithContext(ctx, req)
})
}
Using handlerfuncadapter