fixing docker-compose

This commit is contained in:
stefan
2025-09-11 15:24:50 +02:00
parent b9f1a4a150
commit 11e049b0f6
7 changed files with 71 additions and 560 deletions
@@ -84,7 +84,10 @@ fun App() {
coroutineScope.launch {
pingState = PingState.Loading
try {
val response: PingResponse = httpClient.get("http://localhost:8082/ping").body()
// Direkter Aufruf des Ping-Service
//val response: PingResponse = httpClient.get("http://localhost:8082/ping").body()
// NEU: Aufruf über das Gateway
val response: PingResponse = httpClient.get("http://localhost:8081/api/ping").body()
pingState = PingState.Success(response)
} catch (e: Exception) {
pingState = PingState.Error(e.message ?: "Unknown error occurred")
@@ -136,6 +139,7 @@ fun App() {
}
}
}
is PingState.Error -> {
Card(
modifier = Modifier
@@ -158,6 +162,7 @@ fun App() {
}
}
}
else -> {
// Idle or Loading state - no additional display needed
}