Last active
August 15, 2020 20:06
-
-
Save mertcb/a7a142bb9362d74df31e753c6b0ca7a5 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 com.mertcb.sskotlin | |
import io.ktor.application.* | |
import io.ktor.http.ContentType | |
import io.ktor.response.* | |
import io.ktor.request.* | |
import io.ktor.routing.get | |
import io.ktor.routing.routing | |
fun main(args: Array<String>): Unit = io.ktor.server.netty.EngineMain.main(args) | |
@Suppress("unused") // Referenced in application.conf | |
@kotlin.jvm.JvmOverloads | |
fun Application.module(testing: Boolean = false) { | |
routing { | |
get("/"){ | |
call.respondText("Hello, Kotlin!", ContentType.Application.Json) | |
} | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment