Make sure the filters you need had been defined in filters/ folder (could be changed) as same module name, because them will be required when initilizing. Here authorization.js is a example for intecepting by non-authenticated user before GEThttp://yourapp:6060/something:

module.exports=function(req, res, next){

console.log('processing authorization...');

var session = req.session;

if(session.userId){

console.log('user(%d) in session', session.userId);

next();

}else{

console.log('out of session');

// Async filter is ok with express!

db.User.find().success(function(user){

if(!user){

res.send(403);

res.end();

}

});

}

};

You could see filters is as same as a origin router in Express, just be put together in filters/ folder to be interceptors like in Java SSH.