title: Filters on express.js
body: <p>I want to do a filter like rails before filter on express.js. 
  I have a file named photo.js where I'm putting all my photo related routes on there. But I need to redirect user that is not authenticated on my system to the login page. I want to do an beforeFilter so then I dont need to put that logic in all my routes...</p>
  
  <p>Thanks</p>