title: How do I iterate over the routes in a playframework 2 scala application?
body: <p>What is the equivalent for play.mvc.Router.routes in playframework 2 scala?</p>
  
  <p>In playframework 1.x I could Iterate over the available routes in the controller:</p>
  
  <pre><code>for(Route route:Router.routes){
      ...
  }
  </code></pre>
  
  <p>How would I do this with playframework 2 scala?</p>
  
  <p>The not found <a href="https://github.com/playframework/Play20/blob/master/framework/src/play/src/main/scala/views/defaultpages/devNotFound.scala.html" rel="nofollow">dev mode template</a> seems to be able to iterate over them but I need to do this in a controller.</p>