title: Rack URL Mapping
body: <p>I am trying to write two kind of Rack routes. Rack allow us to write such routes like so:</p>
  
  <pre><code>app = Rack::URLMap.new('/test'  =&gt; SimpleAdapter.new,
                         '/files' =&gt; Rack::File.new('.'))
  </code></pre>
  
  <p>In my case, I would like to handle those routes:</p>
  
  <ul>
  <li>"/" or "index"</li>
  <li>"/*" in order to match any other routes</li>
  </ul>
  
  <p>So I had trying this:</p>
  
  <pre><code>app = Rack::URLMap.new('/index' =&gt; SimpleAdapter.new,
                         '/'      =&gt; Rack::File.new('./public'))
  </code></pre>
  
  <p>This works well, but...  I don't know how to add '/' path (as alternative of '/index' path).  The path '/*' is not interpreted as a wildcard, according to my tests.  Do you know how I could do?</p>
  
  <p>Thanks</p>