Nikky
07/05/2018, 8:52 PMIan
07/05/2018, 8:58 PMrouting { ... }
block is supposed to take care of?Nikky
07/05/2018, 9:51 PM@Suppress("unused")
fun Application.routes() {
routing {
...
}
}
and add it to the ktor.application.modules in the application.confIan
07/05/2018, 10:55 PMNikky
07/05/2018, 11:13 PMIan
07/05/2018, 11:45 PMval s = embeddedServer(Netty, port = 8080) {
routing {
get("/") {
call.respondText("Hello World!", ContentType.Text.Plain)
}
get("/demo") {
call.respondText("HELLO WORLD!")
}
}
}
s.start(wait = true)