Adding api name to routing registration #52103
Replies: 2 comments 2 replies
-
What about allowing |
Beta Was this translation helpful? Give feedback.
-
It looks a bit like the issue is whether the name should be nested or not. This could be solved by starting the name with a colon to indicated that it is relative to the parent name. What I don't particularly like about parameters like |
Beta Was this translation helpful? Give feedback.
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 was trying to structure my api to be versioned route files and I managed to do it like so
The issue
The issue comes with the group-naming of the routes inside these files. to group name them, you have to repeat the name prefix for every version
The solution
While you can name group inside the api file to prevent duplication
I think its more convenient to register it once like the api prefix
I've implemented the solution locally and it worked as expected, let me know please if you think I should submit a pr for it
Thank you ❤️
Beta Was this translation helpful? Give feedback.
All reactions