Dear Community,

I want to define 2 routes with Knative endpoint consumer as below:


from("knative:endpoint/test1")
        .routeId("route_inbound_knative1")
        .log("Trigger from test1 endpoint")
        .setBody(constant("Success test1"));

from("knative:endpoint/test2")
        .routeId("route_inbound_knative2")
        .log("Trigger from test2 endpoint")
        .setBody(constant("Success test2"));

After deploy it with "kamel run" command, the auto-generated 
CAMEL_KNATIVE_CONFIGURATION is as below:

{"services":[{"type":"endpoint","name":"test1","path":"/","metadata":{"camel.endpoint.kind":"source","knative.apiVersion":"serving.knative.dev/v1","knative.kind":"Service"}},{"type":"endpoint","name":"test2","path":"/","metadata":{"camel.endpoint.kind":"source","knative.apiVersion":"serving.knative.dev/v1","knative.kind":"Service"}}]}

How can I set different path for these 2 Knative endpoint like "/test1" and 
"/test2"?

Thanks!

Reply via email to