Skip to content

Instantly share code, notes, and snippets.

@yarax
Last active October 15, 2016 20:52
Show Gist options
  • Save yarax/0155fbed9f62a52bb143b95652e2b0f3 to your computer and use it in GitHub Desktop.
Save yarax/0155fbed9f62a52bb143b95652e2b0f3 to your computer and use it in GitHub Desktop.
HTTP handling Express
app.post((req, res) => {
const user = db.getUserByName(req.headers.name);
const user = db.getUserByName(req.query.name);
const user = db.getUserByName(req.path.name);
const user = db.getUserByName(req.body.name);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment