This commit is contained in:
TJ Holowaychuk 2011-11-20 11:29:08 -08:00
parent a5227191b5
commit d771d06e19

View File

@ -15,6 +15,9 @@ var users = [
function provides(type) {
return function(req, res, next){
if (req.accepts(type)) return next();
// invoking next() with "route" will
// skip passed all remaining middleware
// for this route (if any).
next('route');
}
}