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(
67
67
val file = call.parameters[" file" ] ? : return @head call.respondNotFound()
68
68
69
69
if (file in bindingArtifacts) {
70
- call.respondText(" Exists" , status = HttpStatusCode .OK )
70
+ call.respondText(text = " Exists" , status = HttpStatusCode .OK )
71
71
} else {
72
72
call.respondNotFound()
73
73
}
@@ -83,14 +83,14 @@ private fun Route.getArtifact(
83
83
get {
84
84
val bindingArtifacts = call.toBindingArtifacts(refresh) ? : return @get call.respondNotFound()
85
85
86
- if (refresh && ! deliverOnRefreshRoute) return @get call.respondText(" OK" )
86
+ if (refresh && ! deliverOnRefreshRoute) return @get call.respondText(text = " OK" )
87
87
88
88
val file = call.parameters[" file" ] ? : return @get call.respondNotFound()
89
89
90
90
val artifact = bindingArtifacts[file] ? : return @get call.respondNotFound()
91
91
92
92
when (artifact) {
93
- is TextArtifact -> call.respondText(artifact.data())
93
+ is TextArtifact -> call.respondText(text = artifact.data())
94
94
is JarArtifact -> call.respondBytes(artifact.data(), ContentType .parse(" application/java-archive" ))
95
95
}
96
96
Original file line number Diff line number Diff line change @@ -7,10 +7,10 @@ import io.micrometer.prometheusmetrics.PrometheusMeterRegistry
7
7
8
8
fun Routing.internalRoutes (prometheusRegistry : PrometheusMeterRegistry ) {
9
9
get(" /metrics" ) {
10
- call.respondText(prometheusRegistry.scrape())
10
+ call.respondText(text = prometheusRegistry.scrape())
11
11
}
12
12
13
13
get(" /status" ) {
14
- call.respondText(" OK" )
14
+ call.respondText(text = " OK" )
15
15
}
16
16
}
Original file line number Diff line number Diff line change @@ -51,4 +51,4 @@ fun main() {
51
51
52
52
val deliverOnRefreshRoute = System .getenv(" GWKT_DELIVER_ON_REFRESH" ).toBoolean()
53
53
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) {
29
29
val bindingArtifacts = actionCoords.buildPackageArtifacts(githubToken = getGithubToken())
30
30
if (file in bindingArtifacts) {
31
31
when (val artifact = bindingArtifacts[file]) {
32
- is String -> call.respondText(artifact)
32
+ is String -> call.respondText(text = artifact)
33
33
else -> call.respondText(text = " Not found" , status = HttpStatusCode .NotFound )
34
34
}
35
35
} else {
You can’t perform that action at this time.
0 commit comments