Skip to content

Instantly share code, notes, and snippets.

@akimicyu
Created July 13, 2017 06:01
Show Gist options
  • Save akimicyu/962f1b4df49ad6ac03402df49482f946 to your computer and use it in GitHub Desktop.
Save akimicyu/962f1b4df49ad6ac03402df49482f946 to your computer and use it in GitHub Desktop.
UhoServer
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