File tree Expand file tree Collapse file tree 4 files changed +7
-7
lines changed
jit-binding-server/src/main/kotlin/io/github/typesafegithub/workflows/jitbindingserver Expand file tree Collapse file tree 4 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ private fun Route.headArtifact(
6767 val file = call.parameters[" file" ] ? : return @head call.respondNotFound()
6868
6969 if (file in bindingArtifacts) {
70- call.respondText(" Exists" , status = HttpStatusCode .OK )
70+ call.respondText(text = " Exists" , status = HttpStatusCode .OK )
7171 } else {
7272 call.respondNotFound()
7373 }
@@ -83,14 +83,14 @@ private fun Route.getArtifact(
8383 get {
8484 val bindingArtifacts = call.toBindingArtifacts(refresh) ? : return @get call.respondNotFound()
8585
86- if (refresh && ! deliverOnRefreshRoute) return @get call.respondText(" OK" )
86+ if (refresh && ! deliverOnRefreshRoute) return @get call.respondText(text = " OK" )
8787
8888 val file = call.parameters[" file" ] ? : return @get call.respondNotFound()
8989
9090 val artifact = bindingArtifacts[file] ? : return @get call.respondNotFound()
9191
9292 when (artifact) {
93- is TextArtifact -> call.respondText(artifact.data())
93+ is TextArtifact -> call.respondText(text = artifact.data())
9494 is JarArtifact -> call.respondBytes(artifact.data(), ContentType .parse(" application/java-archive" ))
9595 }
9696
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ import io.micrometer.prometheusmetrics.PrometheusMeterRegistry
77
88fun Routing.internalRoutes (prometheusRegistry : PrometheusMeterRegistry ) {
99 get(" /metrics" ) {
10- call.respondText(prometheusRegistry.scrape())
10+ call.respondText(text = prometheusRegistry.scrape())
1111 }
1212
1313 get(" /status" ) {
14- call.respondText(" OK" )
14+ call.respondText(text = " OK" )
1515 }
1616}
Original file line number Diff line number Diff line change @@ -51,4 +51,4 @@ fun main() {
5151
5252val deliverOnRefreshRoute = System .getenv(" GWKT_DELIVER_ON_REFRESH" ).toBoolean()
5353
54- suspend fun ApplicationCall.respondNotFound () = respondText(" Not found" , status = HttpStatusCode .NotFound )
54+ suspend fun ApplicationCall.respondNotFound () = respondText(text = " Not found" , status = HttpStatusCode .NotFound )
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ private fun Route.metadata(refresh: Boolean = false) {
2929 val bindingArtifacts = actionCoords.buildPackageArtifacts(githubToken = getGithubToken())
3030 if (file in bindingArtifacts) {
3131 when (val artifact = bindingArtifacts[file]) {
32- is String -> call.respondText(artifact)
32+ is String -> call.respondText(text = artifact)
3333 else -> call.respondText(text = " Not found" , status = HttpStatusCode .NotFound )
3434 }
3535 } else {
You can’t perform that action at this time.
0 commit comments