Skip to content

Commit

Permalink
Add support for [email protected] #21
Browse files Browse the repository at this point in the history
  • Loading branch information
mjzone committed Oct 9, 2016
1 parent 6cc9560 commit b132a6d
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 25 deletions.
24 changes: 0 additions & 24 deletions serverless/handlers/todo/config.yml

This file was deleted.

25 changes: 24 additions & 1 deletion serverless/serverless.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,30 @@ custom:
functions:
todo:
handler: handlers/todo/handler.todo
events: ${file(handlers/todo/config.yml):events}
events:
- http:
method: GET
path: todos/getAll
cors: true
request: ${file(./templates.yml):request}

- http:
method: DELETE
path: todos/delete/{id}
cors: true
request: ${file(./templates.yml):request}

- http:
method: POST
path: todos
cors: true
request: ${file(./templates.yml):request}

- http:
method: PUT
path: todos/update
cors: true
request: ${file(./templates.yml):request}

resources:
Resources: ${file(resources/tables.yml):migration}

0 comments on commit b132a6d

Please sign in to comment.