Controller cutom dir not working #3358
-
I don't want to have my controllers inside app/Controllers/Http/ instead they should be in a subfolder like this: app/Auth/Presentation/Http/AuthController, but I'm not having success on that. I've found this previous answer, here @thetutlage suggest adding the complete namespace, which I've tried and didn't work. Controller location in my current app it seems like Adonisjs requires that controllers must be inside Http folder. How can I change that? Best regards, |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
Check the docs for controller namespaces https://docs.adonisjs.com/guides/controllers#route-namespacing |
Beta Was this translation helpful? Give feedback.
Check the docs for controller namespaces https://docs.adonisjs.com/guides/controllers#route-namespacing