diff options
| author | Paul-Christian Volkmer | 2024-01-17 12:35:35 +0100 |
|---|---|---|
| committer | GitHub | 2024-01-17 12:35:35 +0100 |
| commit | fa89a64ddd710f1a0086065b56496bdabf11f0f8 (patch) | |
| tree | 958ede6df628cac8d03663521491492bbb997e40 /src/main/kotlin | |
| parent | c4eb4d0fe2b2950987b672131d88d1aaa55aac53 (diff) | |
| parent | 45ad5e88279d09360ce5f001986ee03a7b95a62e (diff) | |
Merge pull request #28 from CCC-MF/issue_24
feat #24: use htmx to refresh connection status every 20s
Diffstat (limited to 'src/main/kotlin')
| -rw-r--r-- | src/main/kotlin/dev/dnpm/etl/processor/web/ConfigController.kt | 9 |
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 |
