Advertisement
Guest User

Untitled

a guest
Nov 29th, 2021
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Kotlin 0.33 KB | None | 0 0
  1. import io.ktor.server.application.*
  2. import io.ktor.server.cio.*
  3. import io.ktor.server.engine.*
  4. import io.ktor.server.response.*
  5. import io.ktor.server.routing.*
  6.  
  7. fun main() {
  8.     embeddedServer(CIO) {
  9.         routing {
  10.             get("/") {
  11.                 call.respond("Hello World!")
  12.             }
  13.         }
  14.     }.start(true)
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement