title: how to add query parameters to router.get
body: <p>Environment: MEAN tech stack  </p>
  
  <p>Hi, I want to add a query parameter to my router.get but I'm not sure how to define it.</p>
  
  <p>Works like this right now:</p>
  
  <pre><code>http://test.com/path1/path2/1
  
  router.get('/path1/path2/:userId', (req, res) =&gt; {
      let route = `GET /path1/path2/${req.params.userId}`;
  </code></pre>
  
  <p>I just want to add a search query parameter, would it be something like this?</p>
  
  <pre><code>http://test.com/path1/path2/1?q=test
  </code></pre>
  
  <p>And how would that get defined in the router.get?</p>