Shalaga44
09/05/2020, 1:57 PMfun main() {
embeddedServer(
Netty, watchPaths = listOf("jvmMain"), port = 8080,
module = Application::myModule
).start(wait = true)
}
fun Application.myModule() {
routing {
get("/") {
call.respondHtml(HttpStatusCode.OK, HTML::index)
}
static("/static") {
resources()
}
}
}
Big Chungus
09/05/2020, 3:24 PM