From 7bd5f2da5423ee95f7591cbfaa2d650396cddfc5 Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Sun, 17 Dec 2023 06:54:11 +0800 Subject: [PATCH] update-docs-and-mill --- .mill-version | 2 +- docs/pages/1 - Cask: a Scala HTTP micro-framework.md | 5 +++-- mill | 2 +- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.mill-version b/.mill-version index edda4c06b1..ecd2d5d92b 100644 --- a/.mill-version +++ b/.mill-version @@ -1,2 +1,2 @@ -0.11.0 +0.11.6 diff --git a/docs/pages/1 - Cask: a Scala HTTP micro-framework.md b/docs/pages/1 - Cask: a Scala HTTP micro-framework.md index 9319dd0bf3..a66811bad8 100644 --- a/docs/pages/1 - Cask: a Scala HTTP micro-framework.md +++ b/docs/pages/1 - Cask: a Scala HTTP micro-framework.md @@ -145,9 +145,10 @@ or from query-parameters of the same name (e.g. `param` above). You can make `: Option[T]` for cases where the `?param=hello` is optional. If you need to capture the entire sub-path of the request, you can set the flag -`subpath=true` and ask for a `: cask.Subpath` (the name of the param doesn't +`subpath=true` and ask for a `request: cask.Request` (the name of the param doesn't matter). This will make the route match any sub-path of the prefix given to the -`@cask` decorator, and give you the remainder to use in your endpoint logic. +`@cask` decorator, and give you the remainder to use in your endpoint logic +as `request.remainingPathSegments` ## Multi-method Routes diff --git a/mill b/mill index cb1ee32f7f..0c5078a0f0 100755 --- a/mill +++ b/mill @@ -7,7 +7,7 @@ set -e if [ -z "${DEFAULT_MILL_VERSION}" ] ; then - DEFAULT_MILL_VERSION=0.11.0 + DEFAULT_MILL_VERSION=0.11.6 fi if [ -z "$MILL_VERSION" ] ; then