Skip to content

Instantly share code, notes, and snippets.

@Raynos
Created October 16, 2012 05:58
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 Raynos/3897438 to your computer and use it in GitHub Desktop.
Save Raynos/3897438 to your computer and use it in GitHub Desktop.
var server = stack()
server.get("troll", function () {
func()
troll()
})
server.get("normal", normal)
var server = stack()
server.use(function trolling(req) {
if (req.url === "troll") {
func()
}
})
server.get("troll", troll)
server.get("normal", normal)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment