Is there any way to route all request to specific URI to another projects rest controller? consider the code below:
@Component
public class CamelSportsRouteBuilder extends RouteBuilder {
@Override
public void configure() throws Exception {
restConfiguration()
.component("servlet")
.bindingMode(RestBindingMode.auto);
rest().path("/hello").get().route()
.toD("localhost:9080/hello");
}
}
I want to route all request of /hello
to another project rest controller endpoint: localhost:9080/hello
but without XML it cant be possible.