summaryrefslogtreecommitdiff
path: root/example/minimalApplication/app/src/MinimalApplication.scala
blob: e3b1eff932e318a46038bdeade2389b6f4bd9df7 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
package app
object MinimalApplication extends cask.MainRoutes{
  @cask.get("/")
  def hello() = {
    "Hello World!"
  }

  @cask.post("/do-thing")
  def doThing(request: cask.Request) = {
    new String(request.readAllBytes()).reverse
  }

  initialize()
}