Replies: 1 comment
-
This is something you could do with a function or extend the router using macroable (if you need a more cleaner API). But, seems like a very niche use-case to be added to the framework. |
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.
-
Hi,
thanks for the amazing work on adonisjs.
I'd like to open the idea of adding :
router.group(..).prefixes(['/a','/b', ...'])
I one of our project, we are changing the location of a group of routes but we also want to keep retro-compatibility for existing API clients. We would like to put the same group of routes behind two different prefixes.
Do you think such a feature would help the community ?
Beta Was this translation helpful? Give feedback.
All reactions