Can I use new Kotlin DSL for setting up routing, for example as in :
router {
("/blog" and accept(TEXT_HTML)).nest {
GET("/", fooHandler::findAllView)
GET("/{slug}", fooHandler::findOneView)
}
("/api/blog" and accept(APPLICATION_JSON)).nest {
GET("/", barHandler::findAll)
GET("/{id}", barHandler::findOne)
}
}
with non-reactive web part? In the sense that underlying database will be Postgres and non Reactive servlet based application server so I do not want/need to use Flux or Mono for return types of barHandler
or repository functions. But I do like new router DSL when used with Kotlin and it is more powerful than annotation based @RequestMapping
and easier to get a grasp of all the app routes.