diff options
Diffstat (limited to 'cask/test/src/test/cask/FormJsonPost.scala')
-rw-r--r-- | cask/test/src/test/cask/FormJsonPost.scala | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/cask/test/src/test/cask/FormJsonPost.scala b/cask/test/src/test/cask/FormJsonPost.scala index 0be4480..9db3d24 100644 --- a/cask/test/src/test/cask/FormJsonPost.scala +++ b/cask/test/src/test/cask/FormJsonPost.scala @@ -1,7 +1,5 @@ package test.cask -import cask.FormValue - object FormJsonPost extends cask.MainRoutes{ @cask.postJson("/json") def jsonEndpoint(value1: ujson.Js.Value, value2: Seq[Int]) = { @@ -9,10 +7,15 @@ object FormJsonPost extends cask.MainRoutes{ } @cask.postForm("/form") - def formEndpoint(value1: FormValue, value2: Seq[Int]) = { + def formEndpoint(value1: cask.FormValue, value2: Seq[Int]) = { "OK " + value1 + " " + value2 } + @cask.postForm("/upload") + def uploadFile(image: cask.FormFile) = { + image.fileName + } + initialize() } |