Skip to content
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

Include the route's verbs if they are constrained to certain verbs #1

Merged
merged 2 commits into from
Jul 29, 2017

Conversation

deroine
Copy link
Contributor

@deroine deroine commented Jul 27, 2017

If you have two routes with the same path, but different verbs then you will get a duplicate key exception when attempting to add the second route. This change appends the route verb/http method if it is constrained to certain http methods. If they are not constrained it should allow anything through. I believe I have preserved backwards compatibility, and added new unit tests for the verb functionality.

I believe everything is ready to push the update to NuGet, but it was published under your account, so if you want to push the update that would be great! Otherwise I can look at publishing myself.

@trpalmer trpalmer merged commit d323c9b into trpalmer:master Jul 29, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants