Load Controller actions

PHOTO EMBED

Fri Jan 22 2021 01:49:09 GMT+0000 (UTC)

Saved by @delitescere #kotlin,springframework

    @GetMapping(produces = [MediaType.TEXT_EVENT_STREAM_VALUE])
    suspend fun load(model: Model): String {
        model.addAttribute("loadStream", dataDrivenEach(loadService.stream()))
        return "load.turbo-stream"
    }
content_copyCOPY