Skip to content

Instantly share code, notes, and snippets.

@gedorinku
Created December 9, 2017 15:44
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save gedorinku/0c24cbd5a9f3f5db41318a42dd743f63 to your computer and use it in GitHub Desktop.
Save gedorinku/0c24cbd5a9f3f5db41318a42dd743f63 to your computer and use it in GitHub Desktop.
package io.github.gedorinku.ktorapp
import io.ktor.application.Application
import io.ktor.application.call
import io.ktor.response.respondText
import io.ktor.routing.get
import io.ktor.routing.routing
/**
* Created by gedorinku on 2017/12/09.
*/
fun Application.sampleApplication() {
routing {
get("/") {
call.respondText("Hello")
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment