Skip to content

Commit

Permalink
update template for tic-tac-toe API
Browse files Browse the repository at this point in the history
  • Loading branch information
hectorsector committed Oct 30, 2019
1 parent 6c06a97 commit 787c6aa
Showing 1 changed file with 16 additions and 4 deletions.
20 changes: 16 additions & 4 deletions sam-template.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Transform: 'AWS::Serverless-2016-10-31'
Resources:

ThumbnailFunction:
MainFunction:
# This resource creates a Lambda function.
Type: 'AWS::Serverless::Function'

Expand All @@ -11,7 +11,7 @@ Resources:
Runtime: nodejs8.10

# This is the Lambda function's handler.
Handler: index.handler
Handler: handler.lambdaHandler

# The location of the Lambda function code.
CodeUri: .
Expand All @@ -21,9 +21,21 @@ Resources:
# called when a HTTP request is made to the API Gateway endpoint.
Events:

ThumbnailApi:
MainPage:
# Define an API Gateway endpoint that responds to HTTP GET at /thumbnail
Type: Api
Properties:
Path: /thumbnail
Path: /
Method: GET
CSSFile:
# Define an API Gateway endpoint that responds to HTTP GET at /thumbnail
Type: Api
Properties:
Path: /public/index.css
Method: GET
JSFile:
# Define an API Gateway endpoint that responds to HTTP GET at /thumbnail
Type: Api
Properties:
Path: /public/main.js
Method: GET

0 comments on commit 787c6aa

Please sign in to comment.