summaryrefslogtreecommitdiff
path: root/example/variableRoutes
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
parentf8bb6f693b8450f8e049396fd0e7d032ac7acb23 (diff)
downloadcask-4b0cfdf0eeca46cfccbf9fe42af42f383932c427.tar.gz
cask-4b0cfdf0eeca46cfccbf9fe42af42f383932c427.tar.bz2
cask-4b0cfdf0eeca46cfccbf9fe42af42f383932c427.zip
0.1.10.1.1
Diffstat (limited to 'example/variableRoutes')
-rw-r--r--example/variableRoutes/app/src/VariableRoutes.scala4
-rw-r--r--example/variableRoutes/build.sc2
2 files changed, 3 insertions, 3 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()
diff --git a/example/variableRoutes/build.sc b/example/variableRoutes/build.sc
index 2166763..a08b2c6 100644
--- a/example/variableRoutes/build.sc
+++ b/example/variableRoutes/build.sc
@@ -4,7 +4,7 @@ import mill._, scalalib._
trait AppModule extends ScalaModule{
def scalaVersion = "2.12.6"
def ivyDeps = Agg(
- ivy"com.lihaoyi::cask:0.1.0",
+ ivy"com.lihaoyi::cask:0.1.1",
)
object test extends Tests{