summaryrefslogtreecommitdiff
path: root/cask/test/src/test/cask/RedirectAbort.scala
blob: 6a557d68ba0a4102fa7dbd07ea894d2ae9d249c1 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package test.cask

object RedirectAbort extends cask.MainRoutes{
  @cask.get("/")
  def index() = {
    cask.redirect("/login")
  }

  @cask.get("/login")
  def login() = {
    cask.abort(401)
  }

  initialize()
}