You want to initialize your application with the embeddedServer function. How can you do it?
Ktor Engines
Launching the server with embeddedServer
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
}
}.start(wait = true)
embeddedServer(Netty, port = 8080, host = "0.0.0.0") {
}
routing {
get("/") {
}
call.respondText("Hello World!")
fun main() {
___
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.
Create a free account to access the full topic
By continuing, you agree to the JetBrains Academy Terms of Service as well as Hyperskill Terms of Service and Privacy Policy.