courses get and post

This commit is contained in:
Ben Ramey
2018-09-19 06:16:25 -05:00
parent d08bc9cb56
commit 07e4a27a1a
4 changed files with 37 additions and 17 deletions

View File

@@ -66,13 +66,20 @@ provider:
# - exclude-me-dir/**
functions:
courses:
courses-get:
handler: handlers/courses/get.default
events:
- http:
path: courses
method: get
cors: true
courses-post:
handler: handlers/courses/post.default
events:
- http:
path: courses
method: post
cors: true
# The following are a few example events you can configure
# NOTE: Please make sure to change your handler code to work with those events