title: Backbone.js route optional parameter
body: <p>Is it possible to have optional parameters in a Backbone.js route?</p>
  
  <p>e.g this:</p>
  
  <pre><code>routes:
    "search/[:query]": "searchIndex"
  </code></pre>
  
  <p>instead of:</p>
  
  <pre><code>routes:
    "search/": "searchIndex"
    "search/:query": "searchIndex"
  </code></pre>