title: Redirect requests to matching route with forward slash
body: <p>The <a href="https://docs.oracle.com/cd/E19226-01/820-7627/6nisfjmk8/index.html#6nisfjmkh" rel="nofollow">documentation hints at a</a> feature that redirects requests for routes without a trailing slash to the matching controller with an otherwise matching Path. And this seems to work, so</p>
  
  <pre><code>GET /something
  </code></pre>
  
  <p>is correctly routed to the endpoint</p>
  
  <pre><code>@Path("/something/")
  public Response doSomething() {
      ...
  }
  </code></pre>
  
  <p>Normally this would be fine, it's the behaviour I'd expect, but there are some situations where I'd like to treat the two differently. </p>
  
  <p>For example, I have an endpoint that serves dynamic html which contains relative paths for it's static resources. When the request doesn't has a trailing slash the resources 404.</p>
  
  <p>I get that I can just switch to absolute paths in the html, but I'd like to understand if there's a way to control the Jax routes to do this.</p>
  
  <p>I'd like to do this:</p>
  
  <pre><code>@Path("/something")
  public Response doSomething() {
      ...
  }
  
  
  @Path("/something/")
  public Response doSomethingSlightlyDifferent() {
      ...
  }
  </code></pre>
  
  <p>but that gives me a <code>ModelValidationException</code> saying the 2 routes are equivalent which correctly isn't allowed.</p>