title: Are imports and conditionals in Play's routes file possible?
body: <p>I know that the earlier versions of Play used to support routes and conditionals (if blocks) in the routes file but I cannot find any such documentation for Play 2.2.x and <a href="http://www.playframework.com/documentation/2.2.x/ScalaRouting">HTTP routing</a> says nothing about such a feature.</p>
  
  <p>I want to replace this:</p>
  
  <pre><code>GET /api/users/:id com.corporate.project.controllers.UserController.get(id)
  </code></pre>
  
  <p>with a shorter version using <code>import</code> as follows:</p>
  
  <pre><code>import com.corporate.project.controllers._ 
  
  GET /api/users/:id UserController.get(id)
  </code></pre>
  
  <p>Also, is it possible to have conditionals in the routes file? e.g.</p>
  
  <pre><code>if Play.isDev(Play.current())
    GET /displayConfig   DebugController.displayServerConfigs()
  </code></pre>