Skip to content

Commit d260769

Browse files
author
amazon-meaisiah
committed
Add version marker
1 parent 396c862 commit d260769

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

cloudformation/template.yaml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,41 @@ Resources:
148148
schemes:
149149
- https
150150
paths:
151+
# Version marker - please don't delete
152+
/version/:v3_0_5:
153+
options:
154+
consumes:
155+
- application/json
156+
produces:
157+
- application/json
158+
responses:
159+
'200':
160+
description: 200 response
161+
schema:
162+
$ref: "#/definitions/Empty"
163+
headers:
164+
Access-Control-Allow-Origin:
165+
type: string
166+
Access-Control-Allow-Methods:
167+
type: string
168+
Access-Control-Allow-Headers:
169+
type: string
170+
x-amazon-apigateway-integration:
171+
responses:
172+
default:
173+
statusCode: 200
174+
responseParameters:
175+
method.response.header.Access-Control-Allow-Methods: "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'"
176+
method.response.header.Access-Control-Allow-Headers: "'Content-Type,Authorization,X-Amz-Date,X-Api-Key,X-Amz-Security-Token'"
177+
method.response.header.Access-Control-Allow-Origin: !If [ 'LocalDevelopmentMode', "'*'", !If [
178+
'UseCustomDomainName',
179+
!Join ['', [ "'https://", !Ref CustomDomainName, "'" ]],
180+
!Join ['', [ "'https://", !GetAtt DefaultCloudfrontDistribution.DomainName, "'" ]]
181+
]]
182+
passthroughBehavior: when_no_match
183+
requestTemplates:
184+
application/json: "{\"statusCode\": 200}"
185+
type: mock
151186
/:
152187
x-amazon-apigateway-any-method:
153188
security:

0 commit comments

Comments
 (0)