Skip to content

Commit

Permalink
Add routes in api gateway
Browse files Browse the repository at this point in the history
  • Loading branch information
cp-sumi-k committed Feb 15, 2024
1 parent a4c1107 commit f5f2656
Showing 1 changed file with 27 additions and 6 deletions.
33 changes: 27 additions & 6 deletions infrastructure/frontend.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,21 +36,42 @@ Resources:
version: "1.0"
paths:
/sitemap.xml:
any:
x-amazon-apigateway-any-method:
responses:
default:
description: "Default response for ANY /sitemap.xml"
x-amazon-apigateway-integration:
payloadFormatVersion: "1.0"
type: "http_proxy"
httpMethod: "ANY"
uri:
Fn::Sub: "${CloudfrontURL}/sitemap.xml"
httpMethod: "ANY"
connectionType: "INTERNET"
/robots.txt:
any:
x-amazon-apigateway-any-method:
responses:
default:
description: "Default response for ANY /robots.txt"
x-amazon-apigateway-integration:
uri: "${CloudfrontURL}/robots.txt"
payloadFormatVersion: "1.0"
type: "http_proxy"
httpMethod: "ANY"
uri:
Fn::Sub: "${CloudfrontURL}/robots.txt"
connectionType: "INTERNET"
/apple-touch-icon.png:
any:
x-amazon-apigateway-any-method:
responses:
default:
description: "Default response for ANY /apple-touch-icon.png"
x-amazon-apigateway-integration:
uri: "${CloudfrontURL}/apple-touch-icon.png"
payloadFormatVersion: "1.0"
type: "http_proxy"
httpMethod: "ANY"
uri:
Fn::Sub: "${CloudfrontURL}/apple-touch-icon.png"
connectionType: "INTERNET"
x-amazon-apigateway-importexport-version: "1.0"

HttpApiFunction:
Type: AWS::Serverless::Function
Expand Down

0 comments on commit f5f2656

Please sign in to comment.