title: Express "Cannot GET /query" error
body: <p>i recently tried to work with <i>Express</i> and i find it kind of difficult, i tried defining routes in <code>app.js</code> file and after <code>require</code> to <code>index.js</code> and i still get this error when i try to browse to <code>localhost:3000/route</code> </p>
  
  <p>the <b>query.js</b> file</p>
  
  <pre><code>exports.show = function(reg,res){
      res.render("test",{title:"query testing"});
  };
  </code></pre>
  
  <p>i tried this in <code>app.js</code></p>
  
  <pre><code>app.get('/query',require('./routes/query.js'));
  </code></pre>
  
  <p>and in <code>index.js</code></p>
  
  <pre><code>var queryX = require('./query.js');
  app.get('/query',queryX.show);
  </code></pre>
  
  <p>i tried the example with <code>route-separation</code> on github and i get an error to that too<br/>
  why i can't get this to work?</p>