zero_coding
John O'Reilly
Route
fun Route.apiRoute() { route("/api") { get("/interests") { call.respondText("hello world") } } }
routing { apiRoute() }
Eric Grimsborn
typealias RouteHandler = suspend PipelineContext<Unit, ApplicationCall>.(Unit) -> Unit
val helloWorld: RouteHandler = { call.respondText("hello world") }
routing { route("/api") { get("/interests", helloWorld) } }
A modern programming language that makes developers happier.