Created
May 2, 2015 19:20
-
-
Save JosephMoniz/5cc4ea5acf0178b2c8fc to your computer and use it in GitHub Desktop.
A simple redirection controller
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
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