title: Getting Rack mounted path in Sinatra application
body: <p>Suppose I have the following <code>config.ru</code> file</p>
  
  <pre><code>require './status.rb'
  
  map "/status" do
    run Sinatra::Application
  end
  </code></pre>
  
  <p>and the <code>status.rb</code> is a simple</p>
  
  <pre><code>require 'sinatra'
  
  get '/' do
    'Some status here...'
  end
  </code></pre>
  
  <p>I'd like to know where the Sinatra application is mounted inside <code>status.rb</code> (for example to provide proper paths to resources). Is there a way of retrieving that information from Rack?</p>