Skip to content

Instantly share code, notes, and snippets.

@JosephMoniz
Created May 2, 2015 19:31
Show Gist options
  • Save JosephMoniz/130d88c774c6fc1cfd6c to your computer and use it in GitHub Desktop.
Save JosephMoniz/130d88c774c6fc1cfd6c to your computer and use it in GitHub Desktop.
An example identity middleware
final case class IdentityMiddleware() extends Middleware {
def intercept(next: Controller) = AdhocController { request =>
next.action(request)
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment