Created
June 11, 2020 08:43
-
-
Save KunalChaubal/70035b3c4cd3ba4f6eacc6c9e84cecde 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
fun main() { | |
val server = embeddedServer(Netty, port = 8080) { | |
routing { | |
helloWorld() | |
} | |
} | |
server.start(wait = true) | |
} | |
fun Route.helloWorld() { | |
get("/") { | |
call.respondText("Hello World!", ContentType.Text.Plain) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment