Skip to content

Instantly share code, notes, and snippets.

@PipelineBaron
Created May 2, 2015 19:20
Show Gist options
  • Select an option

  • Save PipelineBaron/5cc4ea5acf0178b2c8fc to your computer and use it in GitHub Desktop.

Select an option

Save PipelineBaron/5cc4ea5acf0178b2c8fc to your computer and use it in GitHub Desktop.
A simple redirection controller
final case class SimpleController() extends Controller {
def action(implicit request: HttpRequest) = {
Found("").withHeader(Location("/login"))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment