MCPcopy Create free account
hub / github.com/cdk-patterns/serverless / sendRes

Function sendRes

the-simple-graphql-service/python/lambda_fns/loyalty.js:10–19  ·  view source on GitHub ↗
(status, body)

Source from the content-addressed store, hash-verified

8 return sendRes(200, loyaltylevel);
9};
10const sendRes = (status, body) => {
11 var response = {
12 statusCode: status,
13 headers: {
14 "Content-Type": "application/json"
15 },
16 level: body
17 };
18 return response;
19};

Callers 1

loyalty.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected