WIP on courses get function
This commit is contained in:
@@ -57,11 +57,12 @@ provider:
|
||||
|
||||
functions:
|
||||
hello:
|
||||
handler: handlers/hello/get.hello
|
||||
handler: handlers/courses/get.default
|
||||
events:
|
||||
- http:
|
||||
path: hello
|
||||
path: courses
|
||||
method: get
|
||||
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
|
||||
@@ -107,6 +108,20 @@ functions:
|
||||
# NewOutput:
|
||||
# Description: "Description for the output"
|
||||
# Value: "Some output value"
|
||||
resources:
|
||||
coursesTable:
|
||||
Type: AWS::DynamoDB::Table
|
||||
Properties:
|
||||
TableName: eg_courses
|
||||
AttributeDefinitions:
|
||||
- AttributeName: name
|
||||
AttributeType: s
|
||||
KeySchema:
|
||||
- AttributeName: name
|
||||
KeyType: HASH
|
||||
Tags:
|
||||
- Key: app
|
||||
Value: ecs-grader
|
||||
|
||||
plugins:
|
||||
- serverless-offline
|
||||
Reference in New Issue
Block a user