Created
January 9, 2012 23:34
-
-
Save chilts/1585673 to your computer and use it in GitHub Desktop.
middleware which needs access to 'app'
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
// middleware which needs access to 'app' | |
app.use(function(req, res, next) { | |
myOtherFunctionWhichNeedsApp(app, req, res, next); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hey @chilts, You can also do something like this https://gist.github.com/1586028