Skip to content

Instantly share code, notes, and snippets.

@jmathai
Last active March 24, 2016 07:32
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 jmathai/a3b24f868ca15616710d to your computer and use it in GitHub Desktop.
Save jmathai/a3b24f868ca15616710d to your computer and use it in GitHub Desktop.
var Response = require('joule-node-response');
exports.handler = function(event, context) {
var response = new Response();
response.setContext(context);
var name = event.name || 'World';
var greeting = 'Hello, ' + name + '.';
var result = {
"message": greeting
};
response.send(result);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment