Skip to content

Instantly share code, notes, and snippets.

@tj
Created July 21, 2012 14:39
  • Star 2 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save tj/3155979 to your computer and use it in GitHub Desktop.
function ignore(paths, fn) {
return function(req, res, next) {
if (~paths.indexOf(req.url)) {
next();
} else {
fn(req, res, next);
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment