Skip to content

Instantly share code, notes, and snippets.

@chadmichel
Created October 23, 2020 21:34
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 chadmichel/aba483825f7d746667288130969d6511 to your computer and use it in GitHub Desktop.
Save chadmichel/aba483825f7d746667288130969d6511 to your computer and use it in GitHub Desktop.
AWS Lambda - 1
app.get('/', function(req, res) {
res.send({
"Output": "Hello get2 "
});
});
app.post('/', function(req, res) {
console.log('body = ' + req.body);
var name = req.body.name;
res.send({
"Output": "Hello " + name
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment