Import Route in Provider Adonis 6 #4940
Unanswered
GautheyValentin
asked this question in
Help
Replies: 1 comment 1 reply
-
Hello, I am not sure if this is considered good practice, but I have implemented it in the "start" function of a provider. |
Beta Was this translation helpful? Give feedback.
1 reply
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.
Uh oh!
There was an error while loading. Please reload this page.
-
Hello,
I wanted to try to import my route file in my provider but i got like "ErrorHandler is undefined"
I guess it's because i declare in the wrong way my routes.
Provider (imported in adonisrc)
Route
My code is working if i use import via my classic route file but not by this way
Thanks in advance
Beta Was this translation helpful? Give feedback.
All reactions