blob: 0be44804a3cd7ff4751c3ac1e17d9323e172470e (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
package test.cask
import cask.FormValue
object FormJsonPost extends cask.MainRoutes{
@cask.postJson("/json")
def jsonEndpoint(value1: ujson.Js.Value, value2: Seq[Int]) = {
"OK " + value1 + " " + value2
}
@cask.postForm("/form")
def formEndpoint(value1: FormValue, value2: Seq[Int]) = {
"OK " + value1 + " " + value2
}
initialize()
}
|