aeruhxi
01/12/2018, 10:09 AMfun main(args: Array<String>) {
embeddedServer(Netty, 8080) {
routing {
get("/") {
call.respondText("Hello, world!", ContentType.Text.Html)
}
}
}.start(wait = true)
}
this seems to be a different way than most of the examples in ktor.io. Which is the recommended way?