-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Prefix all routes #2609
Comments
Hi @Kikobeats, it's not entirely clear what you're trying to do here--if you put |
@sgress454 exactly I want to do is something to avoid explicity prefix the routes in why? because when you are creating different versions of the same API ( Do you think that can be useful? |
Would be nice to have something similar to rails namespaces for this |
I actually worked on this on a flight a few weeks ago, then lost it and forgot to post. So, here it is: You can do this with policies--just not with the
Then in
At the time, there was an issue where |
Sounds good! thanks for the clarification :-) |
At this moment I want to prefix all routes of my api, so I have in blueprints this:
Works fine, but only prefix blueprints methods (obviously).
Exist a way to prefix all routes? I know that in express 4 is possible prefix easily with:
I know that is possible write a policie, but just I want to set up in the config...
Sorry if is possible to prefix now, but I don't see nothing in the documentation.
The text was updated successfully, but these errors were encountered: