In a spring boot application 3.2.5 , i use spring cloud gateway
In this application i have two endpoint
/home
/info
I use spring cloud gateway to be able to call another spring boot application
So if url have bff routing is executed
...
@Bean
public RouterFunction<ServerResponse> crmRoute(UserHeaderIntranetFilter userHeaderIntranetFilter) {
return route("crmRoute")
.route(RequestPredicates.path("/bff/**"), http(backendUrl))
.before(rewritePath(contextPath + "/bff/(?<segment>.*)", backendContextPath + "/${segment}"))
.build();
}
How to be able to get access my two endpoint in my gateway