Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save kristiankime/5482453 to your computer and use it in GitHub Desktop.
Save kristiankime/5482453 to your computer and use it in GitHub Desktop.
Example of how to use a scala package object to keep the usual play routing with val(s) instead of object(s).
package object controller {
val ControllerOne = configuration.ApplicationConfig.controllerOne
val ControllerTwo = configuration.ApplicationConfig.controllerTwo
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment