Skip to content

Instantly share code, notes, and snippets.

@JosephMoniz
Last active August 29, 2015 14:20
Show Gist options
  • Save JosephMoniz/a89494929424212e6e58 to your computer and use it in GitHub Desktop.
Save JosephMoniz/a89494929424212e6e58 to your computer and use it in GitHub Desktop.
Example use of middleware
final case class ExampleController() extends Controller {
def middleware = Seq(LoggingMiddleware(), CacheMiddleware())
def action(implicit request: HttpRequest) = Ok("Hello")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment