title: Handling freeform GET URL parameters in Play 2 routing
body: <p>Let's say I have an action that optionally accepts two parameters:</p>
  
  <pre><code>def foo(name: String, age: Integer) = Action { 
    // name &amp; age can both be null if not passed
  }
  </code></pre>
  
  <p>How do I setup my <code>route</code> file to work with any of the following call syntaxes:</p>
  
  <pre><code>/foo
  /foo?name=john
  /foo?age=18
  /foo?name=john&amp;age=18
  /foo?authCode=bar&amp;name=john&amp;age=18    // The controller may have other implicit parameters
  </code></pre>
  
  <p>What is the correct syntax for this?</p>