Skip to content

Instantly share code, notes, and snippets.

@chilts

chilts/test.js

Created Jan 9, 2012
Embed
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);
});
@deedubs

This comment has been minimized.

Copy link

@deedubs deedubs commented Jan 10, 2012

Hey @chilts, You can also do something like this https://gist.github.com/1586028

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