filters.js 209 Bytes
module.exports=function(Filter){
    Filter.define("/!(login)", ["get","post"], "common_gray", function (gray, req, res, next){
		if(gray.code==200){
			next();
		}else{
			res.redirect('/login');
		}
	});
};