Created
January 17, 2017 20:24
-
-
Save linus-amg/08325d6394b6e93aa46f49eed4b2c2b9 to your computer and use it in GitHub Desktop.
serverless yml restApi howto?
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
accounts: | |
handler: handler.accounts | |
events: | |
- http: | |
handler: setup | |
method: POST | |
path: account/setup | |
integration: lambda | |
cors: true | |
- http: | |
handler: login | |
method: POST | |
path: account/login | |
integration: lambda | |
cors: true | |
- http: | |
handler: profile | |
method: GET | |
path: account | |
integration: lambda | |
cors: true | |
- http: | |
handler: create | |
method: POST | |
path: accounts | |
integration: lambda | |
cors: true |
Author
linus-amg
commented
Jan 17, 2017
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment