Created
December 9, 2017 15:44
-
-
Save gedorinku/0c24cbd5a9f3f5db41318a42dd743f63 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
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