Skip to content
Permalink
Browse files

Add protection via API key

  • Loading branch information...
dannysu committed Apr 28, 2019
1 parent cde3893 commit eba818b6730d5c5f83920997569c98c348eba1e0
Showing with 4 additions and 0 deletions.
  1. +4 −0 serverless.yml
@@ -22,6 +22,8 @@ provider:
# you can overwrite defaults here
# stage: dev
# region: us-east-1
apiKeys:
- mercury

custom:
webpack:
@@ -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)
@@ -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)

0 comments on commit eba818b

Please sign in to comment.
You can’t perform that action at this time.