Skip to content

Commit a4187ed

Browse files
committed
add mediatype application/x-www-form-urlencoded
1 parent 2bbdf24 commit a4187ed

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

lib/deploy/events/apiGateway/methods.js

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,18 @@ module.exports = {
9696
],
9797
],
9898
},
99+
'application/x-www-form-urlencoded': {
100+
'Fn::Join': [
101+
'', [
102+
"#set( $body = $util.escapeJavaScript($input.json('$')) ) \n\n",
103+
'{"input": "$body","name": "$context.requestId","stateMachineArn":"',
104+
{
105+
Ref: `${stateMachineLogicalId}`,
106+
},
107+
'"}',
108+
],
109+
],
110+
},
99111
},
100112
IntegrationResponses: [
101113
{

0 commit comments

Comments
 (0)