title: How to get ALL of the URL parameters in a Sinatra app
body: <p>Using the following Sinatra app</p>
  
  <pre><code>get '/app' do
    content_type :json
    {"params" =&gt; params}.to_json
  end
  </code></pre>
  
  <p>Invoking:</p>
  
  <p><code>/app?param1=one&amp;param2=two&amp;param2=alt</code></p>
  
  <p>Gives the following result:</p>
  
  <p><code>{"params":{"param1":"one","param2":"alt"}}</code></p>
  
  <p>Params has only two keys, param1 &amp; param2.</p>
  
  <p>I understand Sinatra is setting params as a hash, but it does not represent all of the URL request.</p>
  
  <p>Is there a way in Sinatra to get a list of all URL parameters sent in the request? </p>