This commit is contained in:
TJ Holowaychuk 2013-08-27 21:13:20 -07:00
parent 56b2732133
commit 52a60b715d
1 changed files with 5 additions and 0 deletions

View File

@ -14,6 +14,11 @@ function logger(next){
}
}
// passing any middleware to this middleware
// will make it conditional, and will not be used
// when an asset is requested. This is a modular
// approach to conditiona-middleware.js
function ignoreAssets(mw) {
return function(next){
return function *(){