The goal is to configure my webflux servlet container such that whenever an API call is made to a predefined path will return a response regardless of whether the call is made to an upper/lower case path.
/api/users should give the same result as /api/USERS
This functional route definition along with the WebFluxConfigurer below does not appear to settle it.
@Configuration
class UserRoutes {
@Bean
fun userRouterFunction(
userHandler: userHandler
) = coRouter {
"/users".nest {
GET("/all", userHandler::getAllUser)
@Configuration
@EnableWebFlux
class WebConfig : WebFluxConfigurer {
override fun configurePathMatching(configurer: PathMatchConfigurer) {
configurer.setUseCaseSensitiveMatch(false)
}
}
Is anything amiss here?