diff options
Diffstat (limited to 'example/redirectAbort/app/src/RedirectAbort.scala')
-rw-r--r-- | example/redirectAbort/app/src/RedirectAbort.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/example/redirectAbort/app/src/RedirectAbort.scala b/example/redirectAbort/app/src/RedirectAbort.scala new file mode 100644 index 0000000..18ef2d8 --- /dev/null +++ b/example/redirectAbort/app/src/RedirectAbort.scala @@ -0,0 +1,14 @@ +package app +object RedirectAbort extends cask.MainRoutes{ + @cask.get("/") + def index() = { + cask.Redirect("/login") + } + + @cask.get("/login") + def login() = { + cask.Abort(401) + } + + initialize() +} |