Skip to content

Commit

Permalink
feat: add HTTP API (APIGW-V2) event source
Browse files Browse the repository at this point in the history
  • Loading branch information
brett-vendia committed Jan 6, 2021
1 parent 1dbc5fd commit 60cb8e1
Show file tree
Hide file tree
Showing 23 changed files with 31,463 additions and 1,155 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,7 @@ node_modules
npm-debug.log
.DS_Store
.env
coverage
coverage
sam-template.packaged.yaml
vendia-serverless-express-*.tgz
dist/
2 changes: 1 addition & 1 deletion __tests__/unit.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const logger = {
debug: () => null,
error: () => null
}
const apiGatewayEventSource = eventSources.getEventFnsBasedOnEventSource({ eventSource: 'API_GATEWAY' })
const apiGatewayEventSource = eventSources.getEventFnsBasedOnEventSource({ eventSource: 'API_GATEWAY_V1' })

test('getPathWithQueryStringParams: no params', () => {
const event = {
Expand Down
3 changes: 0 additions & 3 deletions examples/basic-starter-api-gateway-v1/.gitignore

This file was deleted.

2 changes: 1 addition & 1 deletion examples/basic-starter-api-gateway-v1/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"description": "Example application for running a Node Express app on AWS Lambda using Amazon API Gateway.",
"main": "lambda.js",
"config": {
"s3BucketName": "",
"s3BucketName": "sls-xpress-edge1",
"region": "us-east-1",
"cloudFormationStackName": "ServerlessExpressStack",
"functionName": "",
Expand Down
2 changes: 1 addition & 1 deletion examples/basic-starter-api-gateway-v1/sam-template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ Resources:
CodeUri: ./src
Handler: lambda.handler
MemorySize: 1024
Runtime: nodejs8.10
Runtime: nodejs12.x
Timeout: 30
Events:
ProxyApiRoot:
Expand Down
Loading

0 comments on commit 60cb8e1

Please sign in to comment.