Created
February 3, 2013 00:32
-
-
Save j14159/4699916 to your computer and use it in GitHub Desktop.
Floor example
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
"/hello/:name" get { | |
request => Future { | |
/* | |
* we're in The Future here so you can do | |
* heavier stuff without blocking up other | |
* things like the Netty handler. | |
*/ | |
val name = request.path(":name") | |
Response.ok(s"Hello, ${name}") | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment