Improve nested routes API [SPR-14954] #19521
Labels
in: web
Issues in web modules (web, webmvc, webflux, websocket)
type: enhancement
A general enhancement
Milestone
Uh oh!
There was an error while loading. Please reload this page.
Sébastien Deleuze opened SPR-14954 and commented
Nested routes API could perhaps be improved. Current syntax is :
It could be nice to allow to specifying
subroute(prefix("/level1")
instead ofsubroute(GET("/level1/**")
(routing can apply to any method + no need to specify/**
for this use case).Also the method name
subroute
does not seems to be accurate here, especially for specifying the root route. And it would be nice to be able to use a fluent API (RouterFunction
instance method ?) to specify the sub routes, not just with static methods not easy to discover from an API POV.Issue Links:
1 votes, 3 watchers
The text was updated successfully, but these errors were encountered: