refactor to include both get and post in one function
This commit is contained in:
@@ -66,16 +66,13 @@ provider:
|
||||
# - exclude-me-dir/**
|
||||
|
||||
functions:
|
||||
courses-get:
|
||||
handler: handlers/courses/get.default
|
||||
courses:
|
||||
handler: handlers/courses.default
|
||||
events:
|
||||
- http:
|
||||
path: courses
|
||||
method: get
|
||||
cors: true
|
||||
courses-post:
|
||||
handler: handlers/courses/post.default
|
||||
events:
|
||||
- http:
|
||||
path: courses
|
||||
method: post
|
||||
|
||||
Reference in New Issue
Block a user