Skip to content

Commit

Permalink
Change content-type
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-elliott-nhsd committed Jan 24, 2025
1 parent 66b2c33 commit a598546
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions infrastructure/terraform/modules/backend-api/spec.tmpl.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,8 @@
"responses": {
"200": {
"description": "200 response",
"headers": {
"Content-Type": {
"schema": {
"type": "string"
}
}
},
"content": {
"application/json": {
"text/html": {
"schema": {
"type": "object"
}
Expand All @@ -31,7 +24,7 @@
"default": {
"description": "Error",
"content": {
"application/json": {
"text/html": {
"schema": {
"type": "object"
}
Expand Down
2 changes: 1 addition & 1 deletion lambdas/proxy/src/handler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ export const handler: APIGatewayProxyHandler = async (event) => {
return {
statusCode: response.status,
headers: extractStringRecord(event.headers),
body: JSON.stringify(response.data),
body: response.data,
};
};

0 comments on commit a598546

Please sign in to comment.