use namespace and prefix method in one route group #1471
Unanswered
farshadfahimi
asked this question in
Help
Replies: 1 comment 3 replies
-
you must use th full path: Route.group(() => {
Route.get('/wsinfo', 'WsController.index')
}).prefix('admin/api/v1')
.namespace('App/Controllers/Http/admin/api/v1') |
Beta Was this translation helpful? Give feedback.
3 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.
Uh oh!
There was an error while loading. Please reload this page.
-
I have some routes like below
but when I'm using this method like above I got an error I think in most of the cases
namespace
andprefix
change with each other .in this case I should use the
namespace
before each controller and when the routes extends it should be so hard to change or extendsBeta Was this translation helpful? Give feedback.
All reactions