Philipp Mayer
08/29/2020, 5:38 PM@GetMapping("/")
fun index(model: Model): String {
model.addAttribute(....)
return "index"
}
and I would like to convert it to the new dsl.
router {
accept(MediaType.TEXT_HTML).nest {
GET("/") { index(/*model param missing*/) }
}
Could one give me a hint how to handle the parameter model: Model
accordingly?
Thanks a lot!jbnizet
08/30/2020, 7:22 AMGET("/") {
ok().render("index", mapOf("someAttribute" to "someValue"))
}