-
Notifications
You must be signed in to change notification settings - Fork 394
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
Can we create multiple paths for the same controller function? #1345
Comments
That is an interesting use case, I never tried it myself but it should be fine in theory. |
@attilaorosz the above code failed, is there any other way to achieve that? |
When you say failed what do you mean? Is it crashing or not registering the routes? |
@attilaorosz Crashing. |
Could you setup a minimal repro repo so I can take a look? |
I would love to have a feature to use multiple paths for a controller.
This would be useful to prepare our api to deprecate routes and start using the new ones before a major change. |
I just tested it locally and it works as expected. What kind of error do you get? |
I was trying to...
The problem:
We are trying to rename the bad API paths, without removing the old one. Is that possible, using the
routing-controller
package?The text was updated successfully, but these errors were encountered: