This is an automated email from the ASF dual-hosted git repository.

pcongiusti pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel-k-examples.git


The following commit(s) were added to refs/heads/main by this push:
     new db4ffdc  Remove route() from rest example
db4ffdc is described below

commit db4ffdc531bfb8b050b92fe4f7d46e43bb09e09c
Author: Lucie Krejcirova <lfabr...@redhat.com>
AuthorDate: Tue Oct 24 19:56:46 2023 +0200

    Remove route() from rest example
---
 generic-examples/rest/routes-rest.js | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/generic-examples/rest/routes-rest.js 
b/generic-examples/rest/routes-rest.js
index 264af31..f232943 100644
--- a/generic-examples/rest/routes-rest.js
+++ b/generic-examples/rest/routes-rest.js
@@ -23,5 +23,7 @@
 rest('/say/hello')
     .produces("text/plain")
     .get()
-        .route()
-        .transform().constant("Hello World");
+    .to('direct:sayHello');
+
+from('direct:sayHello')
+    .transform().constant("Hello World");

Reply via email to