title: Unable to get param in express JS
body: <p>Below is my code snippet. When I make an HTTP request to <code>http://localhost:3000/address</code> it works, but when I make a request to <code>http://localhost:3000/address/3</code> it doesn't work. What I am doing wrong?</p>
  <pre class="lang-js prettyprint-override"><code>router.get('/:route(address(es)?|documents?)/:id?', async (req, res) =&gt; {
      const {route, id} = req.params;
      console.log(route, id)
  });
  </code></pre>