Skip to content

Instantly share code, notes, and snippets.

@rts-rob
Last active September 9, 2017 08:41
Show Gist options
  • Save rts-rob/611b47c7f068006230a603486b57025d to your computer and use it in GitHub Desktop.
Save rts-rob/611b47c7f068006230a603486b57025d to your computer and use it in GitHub Desktop.
Default Serverless handler.js
'use strict';
module.exports.hello = (event, context, callback) => {
const response = {
statusCode: 200,
body: JSON.stringify({
message: 'Go Serverless v1.0! Your function executed successfully!',
input: event,
}),
};
callback(null, response);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment