e>path-to-regexp</code></a>. Go there to see more information about it.</p>
<pre><code class="language-js">const mid = del(&#39;/user/:id&#39;, ctx =&gt; {
  console.log(&#39;Delete user:&#39;, ctx.params.id);
});
</code></pre>
<h2 id="query">.query</h2>
<p>The parameters from the query when making a request. These come from the url fragment <code>?answer=42&amp;...</code>:</p>
<pre><code class="language-js">const mid = ctx =&gt; {
  expect(ctx.query.answer).toBe(&#39;42&#39;);
  expect(ctx.query.name).toBe