Skip to content

Instantly share code, notes, and snippets.

@lakshmantgld
Created October 27, 2017 08:54
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 lakshmantgld/eee40f02b8c38fd9ad0f3d2a26fe1f5f to your computer and use it in GitHub Desktop.
Save lakshmantgld/eee40f02b8c38fd9ad0f3d2a26fe1f5f to your computer and use it in GitHub Desktop.
module.exports.hello = (event, context, callback) => {
const response = {
statusCode: 200,
headers: {
"x-custom-header" : "my custom header value"
},
body: JSON.stringify({
message: 'Go Serverless v1.0! Your function executed successfully!',
input: event,
}),
};
// success response
callback(null, response);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment