Ping Controller actions


PHOTO EMBED

Mon Jan 18 2021 05:24:39 GMT+0000 (UTC)

Saved by @delitescere #kotlin #springframework

@RequestMapping(produces = [MediaType.TEXT_HTML_VALUE, CustomMediaType.TURBO_STREAM_VALUE])
suspend fun pinger(model: Model): String {
    model.addAttribute("pingTime", pingService.ping(hostname, port))
    return "ping.turbo-stream"
}
content_copyCOPY

.