re>
<h2 id="params">.params</h2>
<p>Parameters from the URL as specified <a href="/documentation/router/">in the route</a>:</p>
<pre><code class="language-js">const mid = get(&#39;/:type/:id&#39;, ctx =&gt; {
  expect(ctx.params.type).toBe(&#39;dog&#39;);
  expect(ctx.params.id).toBe(&#39;42&#39;);
});

// Test it
run(mid).get(&#39;/dog/42&#39;);
</code></pre>
<p>They come from parsing <a href="#-path">the <code>ctx.path</code></a> with the <a href="https://www.npmjs.com/package/path-to-regexp">package <cod