Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions src/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,8 @@
"version": "1.0.0",
"devDependencies": {
"aws-sdk": "~2"
},
"dependencies": {
"js-yaml": "3.0.0"
}
}
7 changes: 4 additions & 3 deletions template.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,10 @@ Resources:
title: !Sub ${AWS::StackName}-HttpApi
version: '1.0'
paths:
/{proxy+}:
/$default:
x-amazon-apigateway-any-method:
responses: {}
isDefaultRoute: true
FailOnWarnings: true
Api:
Type: AWS::Serverless::Function
Expand All @@ -36,10 +37,10 @@ Resources:
TABLE_NAME: !Ref Users
TABLE_ARN: !GetAtt Users.Arn
Events:
HttpApiANYproxy:
HttpApiANYdefault:
Type: HttpApi
Properties:
Path: /{proxy+}
Path: /$default
Method: ANY
ApiId: !Ref HttpApi
PayloadFormatVersion: '2.0'
Expand Down