Last active
April 8, 2020 20:40
-
-
Save pavelgordon/7d441465702f17a16e39d120419013c6 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import io.ktor.* | |
fun main(args: Array<String>) { | |
val server = embeddedServer(Netty, port = 8080) { | |
routing { | |
get("/") { | |
call.respondText("Hello World!", ContentType.Text.Plain) | |
} | |
get("/demo") { | |
call.respondText("HELLO WORLD!") | |
} | |
} | |
} | |
server.start(wait = true) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment