Skip to content

Instantly share code, notes, and snippets.

@linus-amg
Created January 17, 2017 20:24
Show Gist options
  • Select an option

  • Save linus-amg/08325d6394b6e93aa46f49eed4b2c2b9 to your computer and use it in GitHub Desktop.

Select an option

Save linus-amg/08325d6394b6e93aa46f49eed4b2c2b9 to your computer and use it in GitHub Desktop.

Revisions

  1. Linus-Alexander Gubenis created this gist Jan 17, 2017.
    27 changes: 27 additions & 0 deletions serverless.yml
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,27 @@
    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