Created
July 13, 2017 06:01
-
-
Save akimicyu/962f1b4df49ad6ac03402df49482f946 to your computer and use it in GitHub Desktop.
UhoServer
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
package uho.UhoServer | |
import org.jetbrains.ktor.application.* | |
import org.jetbrains.ktor.features.* | |
import org.jetbrains.ktor.logging.* | |
import org.jetbrains.ktor.response.* | |
import org.jetbrains.ktor.routing.* | |
fun main() { | |
install(DefaultHeaders) | |
install(CallLogging) | |
install(Routing) { | |
get("/") { | |
call.respondText("Hello, akimicyu!") | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment