dougmoscrop / serverless-http

Use your existing middleware framework (e.g. Express, Koa) in AWS Lambda 🎉
Other
1.72k stars 166 forks source link

Add support for payload format version 2.0 #150

Closed tehnrd closed 4 years ago

tehnrd commented 4 years ago

This addresses Issue #146 and adds support for the 2.0 API Gateway payload version, https://docs.aws.amazon.com/apigateway/latest/developerguide/http-api-develop-integrations-lambda.html This is the default for the new HTTP APIs.

I also added tests that pass in version 1 and version 2 of the payload and the assert they both have the same structure as returned by create-request.js

dougmoscrop commented 4 years ago

awesome!

brianq commented 4 years ago

Hi @dougmoscrop, when do you think this change might make it into a release?

dougmoscrop commented 4 years ago

I've just published 2.4.0 with this in it

mpvosseller commented 4 years ago

@TehNrd Working for me! Thanks for this @TehNrd