From 96614d998576d46202f2079db72833e7da82818d Mon Sep 17 00:00:00 2001 From: Li Haoyi Date: Mon, 13 Aug 2018 15:56:26 +0800 Subject: tweak docs --- docs/pages/1 - Cask: a Scala HTTP micro-framework .md | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'docs') 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 bd68ce2..fff6270 100644 --- a/docs/pages/1 - Cask: a Scala HTTP micro-framework .md +++ b/docs/pages/1 - Cask: a Scala HTTP micro-framework .md @@ -137,6 +137,14 @@ If you need to capture the entire sub-path of the request, you can set the flag 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. +### Multi-method Routes + +$$$httpMethods + +Sometimes, you may want to handle multiple kinds of HTTP requests in the same +endpoint function, e.g. with code that can accept both GETs and POSTs and decide +what to do in each case. You can use the `@cask.route` annotation to do so + ### Receiving Form-encoded or JSON data $$$formJsonPost -- cgit v1.2.3