From 9e55175b835b4da812353f0ad2ae00d7ac3294a9 Mon Sep 17 00:00:00 2001 From: lihaoyi Date: Sat, 18 May 2024 05:59:39 +0000 Subject: [PATCH] deploy: 6b5849899a4a2fdda81f72794f403355ec57f277 --- index.html | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/index.html b/index.html index e6d827f2e7..72b743874b 100644 --- a/index.html +++ b/index.html @@ -359,17 +359,6 @@ ) } - @cask.postJsonCached("/json-obj-cached") - def jsonEndpointObjCached(value1: ujson.Value, value2: Seq[Int], request: cask.Request) = { - ujson.Obj( - "value1" -> value1, - "value2" -> value2, - // `postJsonCached` buffers up the body of the request in memory before parsing, - // giving you access to the request body data if you want to use it yourself - "body" -> request.text() - ) - } - @cask.postForm("/form") def formEndpoint(value1: cask.FormValue, value2: Seq[Int]) = { "OK " + value1 + " " + value2 @@ -397,6 +386,17 @@ "OK " + value1 + " " + value2 + " " + params.value + " " + segments.value } + @cask.postJsonCached("/json-obj-cached") + def jsonEndpointObjCached(value1: ujson.Value, value2: Seq[Int], request: cask.Request) = { + ujson.Obj( + "value1" -> value1, + "value2" -> value2, + // `postJsonCached` buffers up the body of the request in memory before parsing, + // giving you access to the request body data if you want to use it yourself + "body" -> request.text() + ) + } + @cask.postForm("/form-extra") def formEndpointExtra(value1: cask.FormValue, value2: Seq[Int],