Skip to content

Commit

Permalink
Update integ.aws.ts to include requestParameters
Browse files Browse the repository at this point in the history
  • Loading branch information
FayezX authored Jan 26, 2024
1 parent 0eeca3a commit ffc12ed
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ webSocketApi.addRoute('$connect', {
integrationUri: `arn:aws:apigateway:${stack.region}:dynamodb:action/PutItem`,
integrationMethod: HttpMethod.POST,
credentialsRole: apiRole,
requestParameters: {
'integration.request.header.Content-Type': 'application/json'
},
requestTemplates: {
'application/json': JSON.stringify({
TableName: table.tableName,
Expand Down

0 comments on commit ffc12ed

Please sign in to comment.