title: Routes chaining in express
body: <p>I have a simple app, built with the help of node.js and express. This app has multiple routes and basic login/logout mechanics. I want all routes to redirect to a login form if the user is NOT logged in. This can be done by inserting auth checker lines into each route file.</p>
  
  <p><strong>The question is :</strong>
  Is it possible to chain the routes to push all requests through login checker route and then pass it to the requested one without writing anything to existing route files?</p>
  
  <p>E.g. existing routes are  "/", "/upload", "/login", "/logout".
  I want the request to <strong>get</strong> or <strong>post</strong> "/upload" to be first processed by "/login" route and then by "upload" route.</p>