Skip to content

Commit

Permalink
Add protection via API key
Browse files Browse the repository at this point in the history
  • Loading branch information
dannysu committed Apr 28, 2019
1 parent cde3893 commit eba818b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ provider:
# you can overwrite defaults here
# stage: dev
# region: us-east-1
apiKeys:
- mercury

custom:
webpack:
Expand All @@ -39,6 +41,7 @@ functions:
method: get
path: parser
cors: true
private: true
# Ping every 5 minutes to avoid cold starts
- schedule:
rate: rate(5 minutes)
Expand All @@ -53,6 +56,7 @@ functions:
method: post
path: parse-html
cors: true
private: true
# Ping every 5 minutes to avoid cold starts
- schedule:
rate: rate(5 minutes)
Expand Down

0 comments on commit eba818b

Please sign in to comment.