mirror of
https://github.com/serverless/serverless.git
synced 2026-01-18 14:58:43 +00:00
Replace input.path("$") with input.json("$") in universal request template
This commit is contained in:
parent
87b5407aee
commit
5eb02b3d5a
@ -39,7 +39,7 @@ module.exports = {
|
||||
}
|
||||
#end
|
||||
{
|
||||
"body": $input.path("$"),
|
||||
"body": $input.json("$"),
|
||||
"method": "$context.httpMethod",
|
||||
|
||||
#set( $map = $input.params().header )
|
||||
@ -77,7 +77,7 @@ module.exports = {
|
||||
"IntegrationHttpMethod" : "${method.toUpperCase()}",
|
||||
"Type" : "AWS",
|
||||
"Uri" : "${lambdaUri}",
|
||||
"RequestTemplates": {
|
||||
"RequestTemplates" : {
|
||||
"application/json" : ${JSON.stringify(DEFAULT_JSON_REQUEST_TEMPLATE)}
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user