I've written a Connect middleware where I'd like to re-use the "send" method of the "static" Connect middleware if it's installed. What's the best way to get a hold of that code in my middleware? Currently I'm passing the express object use "use"ing my middleware, sort of like this:
app.use(myMiddleware(express, options));
then myMiddleware calls
express.static.send(req, res, next, ...)
That works, but feels a bit clunky. Is there a better way?