Skip to content

Commit 27b8a89

Browse files
author
amazon-meaisiah
committed
Add version marker
1 parent 8532165 commit 27b8a89

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
@@ -184,6 +184,41 @@ Resources:
184184
schemes:
185185
- https
186186
paths:
187+
# Version marker - please don't delete
188+
/version/:v4_0_2:
189+
options:
190+
consumes:
191+
- application/json
192+
produces:
193+
- application/json
194+
responses:
195+
'200':
196+
description: 200 response
197+
schema:
198+
$ref: "#/definitions/Empty"
199+
headers:
200+
Access-Control-Allow-Origin:
201+
type: string
202+
Access-Control-Allow-Methods:
203+
type: string
204+
Access-Control-Allow-Headers:
205+
type: string
206+
x-amazon-apigateway-integration:
207+
responses:
208+
default:
209+
statusCode: 200
210+
responseParameters:
211+
method.response.header.Access-Control-Allow-Methods: "'DELETE,GET,HEAD,OPTIONS,PATCH,POST,PUT'"
212+
method.response.header.Access-Control-Allow-Headers: "'Content-Type,Authorization,X-Amz-Date,X-Api-Key,X-Amz-Security-Token'"
213+
method.response.header.Access-Control-Allow-Origin: !If [ 'LocalDevelopmentMode', "'*'", !If [
214+
'UseCustomDomainName',
215+
!Join ['', [ "'https://", !Ref CustomDomainName, "'" ]],
216+
!Join ['', [ "'https://", !GetAtt DefaultCloudfrontDistribution.DomainName, "'" ]]
217+
]]
218+
passthroughBehavior: when_no_match
219+
requestTemplates:
220+
application/json: "{\"statusCode\": 200}"
221+
type: mock
187222
/:
188223
x-amazon-apigateway-any-method:
189224
security:

0 commit comments

Comments
 (0)