title: Node Express dynamic route/path
body: <p>How can I implement and get a dynamic route or path with Express package? The main problem is the path is an id pass by the client and had no control over it.</p>
  <pre><code>const express = require('express');
  const dynamic_path= express();
  
  
  dynamic_path.get('/user', (req, res) =&gt; {
  
  });
  
  exports.v1 = functions.runWith(runtimeOpts).https.onRequest(dynamic_path);
  </code></pre>
  <p>The above will result as <code>https://my-app.net/v1/user</code> and the client request will be <code>https://my-app.net/v1/user/user_id</code>. I need to allow dynamic path and I need to get the value of <code>user_id</code> as well for future usage.</p>