Created
August 18, 2014 19:26
-
-
Save wonderdogone/dd48b07334b894975083 to your computer and use it in GitHub Desktop.
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.get("/user/:userid", function (req, res, next) { | |
var id = parseInt(req.params.userid); | |
if (id === 'John') { | |
next(); | |
} else { | |
//do something with the none John user id | |
} | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment