summaryrefslogtreecommitdiff
path: root/example/variableRoutes/app
diff options
context:
space:
mode:
authorLi Haoyi <haoyi.sg@gmail.com>2018-08-18 10:16:27 +0800
committerLi Haoyi <haoyi.sg@gmail.com>2018-08-18 10:16:27 +0800
commit4b0cfdf0eeca46cfccbf9fe42af42f383932c427 (patch)
treeeafc563d53cc6d840d88a9848a88fa67f03cbb9e /example/variableRoutes/app
parentf8bb6f693b8450f8e049396fd0e7d032ac7acb23 (diff)
downloadcask-4b0cfdf0eeca46cfccbf9fe42af42f383932c427.tar.gz
cask-4b0cfdf0eeca46cfccbf9fe42af42f383932c427.tar.bz2
cask-4b0cfdf0eeca46cfccbf9fe42af42f383932c427.zip
0.1.10.1.1
Diffstat (limited to 'example/variableRoutes/app')
-rw-r--r--example/variableRoutes/app/src/VariableRoutes.scala4
1 files changed, 2 insertions, 2 deletions
diff --git a/example/variableRoutes/app/src/VariableRoutes.scala b/example/variableRoutes/app/src/VariableRoutes.scala
index 760ab15..a1c8a4f 100644
--- a/example/variableRoutes/app/src/VariableRoutes.scala
+++ b/example/variableRoutes/app/src/VariableRoutes.scala
@@ -11,8 +11,8 @@ object VariableRoutes extends cask.MainRoutes{
}
@cask.get("/path", subpath = true)
- def showSubpath(subPath: cask.Subpath) = {
- s"Subpath ${subPath.value}"
+ def showSubpath(request: cask.Request) = {
+ s"Subpath ${request.remainingPathSegments}"
}
initialize()