title: Is it bad practice to call express routes from another?
body: <p>I have a route that could do many different things.  For example:</p>
  
  <p>A route file:</p>
  
  <pre><code>exports.index = function (req, res) {
      if (x)
          exports.login(req,res);
      else
          exports.dostuff(req,res);
  };
  
  exports.login = function(req, res) {
      res.render('login');
  };
  
  exports.dostuff = function(req, res) { 
      res.render('otherfile');
  };
  </code></pre>
  
  <p>Is this bad practice?  Is there a better way of going about such a situation?  Thanks.</p>