You want to initialize your application with the EngineMain method. How can you do it?
Ktor Engines
Launching the server with EngineMain
Report a typo
Reorder lines using drag or arrows. Adjust indentation with left buttons
get("/") {
EngineMain.main(args)
fun main(args: Array<String>) {
fun Application.module() {
}
routing {
}
call.respondText("Hello, world!")
}
}
___
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.