This commit is contained in:
TJ Holowaychuk 2013-08-27 21:13:20 -07:00
parent 56b2732133
commit 52a60b715d

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) { function ignoreAssets(mw) {
return function(next){ return function(next){
return function *(){ return function *(){