commit | db4ffdc531bfb8b050b92fe4f7d46e43bb09e09c | [log] [tgz] |
---|---|---|
author | Lucie Krejcirova <lfabriko@redhat.com> | Tue Oct 24 19:56:46 2023 +0200 |
committer | Pasquale Congiusti <pasquale.congiusti@gmail.com> | Wed Oct 25 07:59:22 2023 +0200 |
tree | 1ccfdff0b7bd6023276770cdbea8ced7f2266283 | |
parent | 6fdb736e57a2a4ad126b5cf6606cc07164c86375 [diff] |
Remove route() from rest example
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");