title: Deno: Access query params in controller
body: <p>I wrote a couple of apis for a Deno POC.</p>
  
  <p>This is the route code:</p>
  
  <pre><code>const router = new Router()
  router.get('/posts', getPosts)
        .get('/posts/:id', getPostsById)
  </code></pre>
  
  <p>For the second route, I am able to get path param in controller: getPostsById using the keyword: params. This is the controller code:</p>
  
  <pre><code>export const getPostsById = (
    { params, response }: { params:any, response: any }) =&gt; {
      console.log(params, '||| params')}
  </code></pre>
  
  <p>How can I get the query param in similar fashion (eg: /posts/2222?userId=3)</p>
  
  <p>I am using oak for routing. I tried various keywords from oak codebase: query, search etc but no success.</p>
  
  <p>I tried getQuery from the Oak documentation as well, but I am completely unable to import it.</p>