Spark Framework: Match with or without trailing slash : <p>I have noticed something in the Spark Framework.  It does not match trailing slashes with a mapped route.  So it considers /api/test and /api/test/ as different URIs.</p>

<p>That's fine if there is a way to wildcard them together, but there doesn't seem to be.  Am I missing anything?</p>

<p>I want this route:</p>

<pre><code>Spark.get("/api/test", (req, res) -&gt; {
            return "TEST OK";
        });
</code></pre>

<p>To match /api/test OR /api/test/.  As it stands, it only matches /api/test, and if I switch it to:</p>

<pre><code>Spark.get("/api/test/", (req, res) -&gt; {
            return "TEST OK";
        });
</code></pre>

<p>It only matches <code>/api/test/</code></p>
