Skip to content

Instantly share code, notes, and snippets.

@wfaler
Created February 16, 2011 00:18
Show Gist options
  • Save wfaler/828581 to your computer and use it in GitHub Desktop.
Save wfaler/828581 to your computer and use it in GitHub Desktop.
extendedaround.scala
override def around(request: Request, response: Response)(controller: (Request, Response) => Unit) = {
super.around(request, response){
(x: Request, y: Response) => {
//do authentication here
controller(x,y)
//do any cleanup work here
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment