This commit is contained in:
Julien Lengrand-Lambert
2022-08-29 21:50:16 +02:00
parent 095d055785
commit 6333ee8c58
2 changed files with 6 additions and 6 deletions

View File

@@ -26,6 +26,6 @@ jobs:
with:
arguments: build
- name: Upload coverage reports
uses: codecov/codecov-action@v2
uses: codecov/codecov-action@v3
with:
files: build/reports/kover/report.xml

View File

@@ -21,11 +21,11 @@ fun Application.module() {
val env = environment.config.propertyOrNull("ktor.environment")?.getString()
println("Running in the $env environment")
// routing {
// get("/api/environment") {
// call.respondText(env?: "null")
// }
// }
routing {
get("/api/environment") {
call.respondText(env?: "null")
}
}
val database = initDb(
environment.config.property("ktor.database.url").getString(),