diff options
Diffstat (limited to 'example/minimalApplication/app/src/MinimalApplication.scala')
-rw-r--r-- | example/minimalApplication/app/src/MinimalApplication.scala | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/example/minimalApplication/app/src/MinimalApplication.scala b/example/minimalApplication/app/src/MinimalApplication.scala new file mode 100644 index 0000000..5357e64 --- /dev/null +++ b/example/minimalApplication/app/src/MinimalApplication.scala @@ -0,0 +1,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.data.readAllBytes()).reverse + } + + initialize() +} |