Shalaga44
09/05/2020, 1:42 AMfun 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()
}
}
}
Nikky
10/04/2020, 5:07 PM-t
and have ktor server that folder in dev env (check for folder existance when setting up the routes)