Is there any way of creating a service using functions? #5300
Unanswered
mr-mapache
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I had bad experience with class based controllers in the past, since classes allow state in route definitions and I prefer my apis to be stateless. I'm reading docs and I see that I can create services like this:
Is there any way to turn this into a function in order to force the service to be stateless? like this:
Beta Was this translation helpful? Give feedback.
All reactions