diff options
Diffstat (limited to 'example/minimalApplication2/app/src/MinimalApplication2.scala')
-rw-r--r-- | example/minimalApplication2/app/src/MinimalApplication2.scala | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/example/minimalApplication2/app/src/MinimalApplication2.scala b/example/minimalApplication2/app/src/MinimalApplication2.scala new file mode 100644 index 0000000..01b4aa5 --- /dev/null +++ b/example/minimalApplication2/app/src/MinimalApplication2.scala @@ -0,0 +1,16 @@ +package app + +object MinimalRoutes extends cask.Routes{ + @cask.get("/") + def hello() = { + "Hello World!" + } + + @cask.post("/do-thing") + def doThing(request: cask.Request) = { + new String(request.data.readAllBytes()).reverse + } + + initialize() +} +object MinimalMain extends cask.Main(MinimalRoutes)
\ No newline at end of file |