Skip to content

Instantly share code, notes, and snippets.



Created Jan 9, 2012
What would you like to do?
middleware which needs access to 'app'
// middleware which needs access to 'app'
app.use(function(req, res, next) {
myOtherFunctionWhichNeedsApp(app, req, res, next);

This comment has been minimized.

Copy link

@deedubs deedubs commented Jan 10, 2012

Hey @chilts, You can also do something like this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment