Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
serverless yml restApi howto?
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
@linus-amg

This comment has been minimized.

Copy link
Owner Author

@linus-amg linus-amg commented Jan 17, 2017

module.exports.accounts = {
  setup: function (event, context, cb) {},
  login: function (event, context, cb) {},
  profile: function (event, context, cb) {},
  create: function (event, context, cb) {},
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment