Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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