Query parameter as List
<p>I want to have a way access certain query parameters for all of my requests.  An example query would be something like:</p>

<pre><code>http://api.mysite.com/accounts/123?include=friends,photos
</code></pre>

<p>Where I want to get access to the comma separated list of <code>include</code> relationships.</p>

<hr>

<p>As far as I could tell, the following doesn't work and will look at the include list as a single string:</p>

<pre><code>// routes.txt
GET    /accounts/:id    controllers.AccountsController.get(id: Int, include: Seq[String])
</code></pre>

<hr>

<p>This is how I am currently doing it, but I was hoping there was a cleaner way.</p>

<pre><code>// routes.txt
GET    /accounts/:id    controllers.AccountsController.get(id: Int, include: Option[String])

// AccountsController.scala
def get(id: Int, include: Option[String]) = Action {

    // Convert the option to a set
    val set = if (include.isDefined) include.get.split(",").toSet else Set()

} 
</code></pre>