Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@matthieu-D
Created June 14, 2017 13:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save matthieu-D/0d9f6c91584a3836698e6ef1ababdd27 to your computer and use it in GitHub Desktop.
Save matthieu-D/0d9f6c91584a3836698e6ef1ababdd27 to your computer and use it in GitHub Desktop.
exports.handler = (event, context, callback) => {
var responseCode = 200;
var responseBody = {
received: true
};
var response = {
statusCode: responseCode,
headers: {
"x-custom-header" : "custom header value"
},
body: JSON.stringify(responseBody)
};
context.succeed(response);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment