Skip to content

Instantly share code, notes, and snippets.

@esuomi
Created March 21, 2013 13:55
Show Gist options
  • Save esuomi/5213168 to your computer and use it in GitHub Desktop.
Save esuomi/5213168 to your computer and use it in GitHub Desktop.
Conditional app root with teamon's Play-Navigator (https://github.com/teamon/play-navigator/)
package controllers
import play.navigator._
object nav extends PlayNavigator {
if(!Play.isDev()) {
val root = namespace("app") {
val appRoot = app
}
}
val app = namespace("myapp") {
val something = GET on "something" to SomeController.action _
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment