Handler for GET request
robertopini opened this issue · 2 comments
robertopini commented
Let's suppose i want to create a static helloworld service, which should simply return a string when called. Am i forced to define a function ?
Another way to see the problem:
service helloworld {
// empty service with no functions/entities exposed
}
How do i register an handler (let's suppose i'm using node) in this case for the "GET /helloworld" request ? Is it possibile ?
chgeo commented
@David-Kunz do you see a way to achieve this?
Alternatively, one might go with /hello/world
.
David-Kunz commented
Hi @robertopini ,
Yes, you're forced to write a function.
We only support handlers for actions, functions and entities. Not for services themselves.
Best regards,
David