A Spark DSL in idiomatic kotlin.
- Per Wendel, @perwendel
- Love Löfdahl, @lallemupp
http.get("/hello") {
"Hello Spark Kotlin"
}
http.get("/nothing") {
status(404)
"Oops, we couldn't find what you're looking for"
}
http.get("/saymy/:name") {
params(":name")
}
http.get("/redirect") {
redirect("/hello");
}