mirror of
https://github.com/zebrajr/express.git
synced 2025-12-06 12:19:51 +01:00
docs
This commit is contained in:
parent
a5227191b5
commit
d771d06e19
|
|
@ -15,6 +15,9 @@ var users = [
|
||||||
function provides(type) {
|
function provides(type) {
|
||||||
return function(req, res, next){
|
return function(req, res, next){
|
||||||
if (req.accepts(type)) return next();
|
if (req.accepts(type)) return next();
|
||||||
|
// invoking next() with "route" will
|
||||||
|
// skip passed all remaining middleware
|
||||||
|
// for this route (if any).
|
||||||
next('route');
|
next('route');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user