How can I check in runtime if I am running in a de...
# ktor
a
How can I check in runtime if I am running in a development environment?
a
Copy code
embeddedServer(CIO, port = 3333) {
    val app = this
    routing {
        get("/") {
            call.respondText { app.environment.developmentMode.toString() }
        }
    }
}.start(wait = true)
💯 1