title: How to make optional params name in express route?
body: <p>Here is below my code of route:-</p>
  
  <pre><code>app.get('/server/lead/get/:id?', leadCtrl.get);
  app.get('/server/lead/filter/:filterQuery', leadCtrl.get);
  </code></pre>
  
  <p>As you see above i am using different route to access same controller method <code>leadCtrl.get</code>.</p>
  
  <p>Now, i want something like route <code>app.get('/server/lead/get/:id?:filter?', leadCtrl.get);</code>. So, i can get params either <code>req.params.id</code> or <code>req.params.filter</code> but only one at a time.</p>