diff options
author | Li Haoyi <haoyi.sg@gmail.com> | 2018-08-18 10:16:27 +0800 |
---|---|---|
committer | Li Haoyi <haoyi.sg@gmail.com> | 2018-08-18 10:16:27 +0800 |
commit | 4b0cfdf0eeca46cfccbf9fe42af42f383932c427 (patch) | |
tree | eafc563d53cc6d840d88a9848a88fa67f03cbb9e /example/variableRoutes/app | |
parent | f8bb6f693b8450f8e049396fd0e7d032ac7acb23 (diff) | |
download | cask-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.scala | 4 |
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() |