courses get and post
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user