title: How to pass parameter to routes?
body: <p>I am using Nodejs .</p>
  
  <p>Server.js </p>
  
  <pre><code>app.get('/dashboard/:id', routes.dashboard);
  </code></pre>
  
  <p>Routes / index.js </p>
  
  <pre><code>exports.dashboard = function(req, res){
  
  
  }
  </code></pre>
  
  <p>I want to be able to pass the 'id' variable from app.js to the dashboard function . How do I go about doing this ?</p>