Created
December 5, 2012 14:29
-
-
Save oheidemann/4215902 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
curl http://download.playframework.org/releases/play-2.1-RC1.zip -o play.zip | |
unzip play.zip | |
play-2.1-RC1/play new testApp | |
cd testApp | |
add Global.scala | |
../play-2.1-RC1/play start | |
curl localhost:9000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import play.api._ | |
import play.api.mvc._ | |
object Global extends GlobalSettings { | |
override def onRouteRequest(request: RequestHeader): Option[Handler] = { | |
println("onRouteRequest:" + request.toString) | |
super.onRouteRequest(request) | |
} | |
override def onRequestCompletion(request: RequestHeader) { | |
println("onRequestCompletion:" + request.toString) | |
super.onRouteRequest(request) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment