Skip to content

Instantly share code, notes, and snippets.

@tj
Created March 24, 2011 19:49
Show Gist options
  • Save tj/885724 to your computer and use it in GitHub Desktop.
Save tj/885724 to your computer and use it in GitHub Desktop.
var staticProvider = express.static(...);
app.get('*', function(req, res, next){
staticProvider(req, res, function(err){
if (err) return next(err);
// oh nodes, didn't find it
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment