Last active
October 15, 2016 20:52
-
-
Save yarax/0155fbed9f62a52bb143b95652e2b0f3 to your computer and use it in GitHub Desktop.
HTTP handling Express
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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