Is there any way to forward request to another controller ? #3773
Unanswered
jean-smaug
asked this question in
Help
Replies: 3 comments
-
Another proposal. Is this an anti pattern for Adonis ? |
Beta Was this translation helpful? Give feedback.
0 replies
-
I would recommend creating a different small class that contains the business logic. Your controller can then use that class to execute whatever logic is needed. The logic that is shared between the two controllers can simply be a function on that service class. |
Beta Was this translation helpful? Give feedback.
0 replies
-
What's the use case for this? |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hello,
I've got a controller in my application and when I call the update method I would like to forward request to another controller (like in Symfony).
What is the good way to do it ?
Should I :
Thanks 😄
Beta Was this translation helpful? Give feedback.
All reactions