summaryrefslogtreecommitdiff
path: root/src/main/kotlin/dev/dnpm/etl/processor
diff options
context:
space:
mode:
authorPaul-Christian Volkmer2024-01-17 12:26:46 +0100
committerPaul-Christian Volkmer2024-01-17 12:27:44 +0100
commit45ad5e88279d09360ce5f001986ee03a7b95a62e (patch)
tree958ede6df628cac8d03663521491492bbb997e40 /src/main/kotlin/dev/dnpm/etl/processor
parentc4eb4d0fe2b2950987b672131d88d1aaa55aac53 (diff)
feat #24: use htmx to refresh connection status every 20s
Diffstat (limited to 'src/main/kotlin/dev/dnpm/etl/processor')
-rw-r--r--src/main/kotlin/dev/dnpm/etl/processor/web/ConfigController.kt9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/main/kotlin/dev/dnpm/etl/processor/web/ConfigController.kt b/src/main/kotlin/dev/dnpm/etl/processor/web/ConfigController.kt
index 82c1fc0..18bf8d7 100644
--- a/src/main/kotlin/dev/dnpm/etl/processor/web/ConfigController.kt
+++ b/src/main/kotlin/dev/dnpm/etl/processor/web/ConfigController.kt
@@ -49,4 +49,13 @@ class ConfigController(
return "configs"
}
+ @GetMapping(params = ["connectionAvailable"])
+ fun connectionAvailable(model: Model): String {
+ model.addAttribute("mtbFileSender", mtbFileSender.javaClass.simpleName)
+ model.addAttribute("mtbFileEndpoint", mtbFileSender.endpoint())
+ model.addAttribute("connectionAvailable", connectionCheckService.connectionAvailable())
+
+ return "configs/connectionAvailable"
+ }
+
} \ No newline at end of file