title: Express Node JS
body: <p>Following is my code as follows:</p>
  
  <pre><code>    var express = require('express');
  var app = express();
  var router = express.Router();
  
  app.route('/')
    .get(function(req, res) {
      res.send('Hello World!');
    });
  
  app.route('/user')
      .get(function (req, res) {
        res.send('Hello' + req.params.id);
  });
  
  var server = app.listen(8000, function () {
    var host = server.address().address;
    var port = server.address().port;
    console.log('Example app listening at http://%s:%s', host, port);
  });
  </code></pre>
  
  <p>It runs fine with <a href="http://localhost:8000/" rel="nofollow">http://localhost:8000/</a> but with <a href="http://localhost:8000/user?id=D" rel="nofollow">http://localhost:8000/user?id=D</a> it gives following error: Cannot GET /user?id=D.</p>
  
  <p>WHat is wrong in my code? Please help.</p>
  
  <p>Thanks.</p>