1
0
mirror of https://github.com/pcvolkmer/etl-processor.git synced 2025-07-04 15:32:55 +00:00

feat #24: use htmx to refresh connection status every 20s

This commit is contained in:
2024-01-17 12:26:46 +01:00
parent c4eb4d0fe2
commit 45ad5e8827
4 changed files with 29 additions and 18 deletions

View File

@ -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"
}
}