title: Node.js/Express routing with get params
body: <p>Let's say I have get route like this:</p>
  
  <pre class="lang-js prettyprint-override"><code>app.get('/documents/format/type', function (req, res) {
     var format = req.params.format,
         type = req.params.type;
  });
  </code></pre>
  
  <p>So if I make request like </p>
  
  <pre><code>http://localhost:3000/documents/json/mini
  </code></pre>
  
  <p>in my format and type variables will be 'json' and 'mini' respectively, but if I make request like </p>
  
  <pre><code>http://localhost:3000/documents/mini/json
  </code></pre>
  
  <p>not. So my question is: how can I get the same variables in different order?</p>