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

Routes listed as GET no matter what #24

Open
gekkedev opened this issue Aug 2, 2019 · 0 comments
Open

Routes listed as GET no matter what #24

gekkedev opened this issue Aug 2, 2019 · 0 comments

Comments

@gekkedev
Copy link

gekkedev commented Aug 2, 2019

If I generate a very default ASP/.NET Core - based CRUD controller (4 methods) with the route
[Route("[controller]/[action]")], all listed routes have the same request type (GET).
This is not how the routes are actually behaving. They're accessible by their respectively specified attributes. For example, my deletion method does only react to DELETE requests when specifying the attribute [HttpDelete]. Additionally I am using ASP's [Authorize] attribute on pretty much every controller, but gitting rid of it is not an option. Removing my custom written action filters do not seem to have any negative effect either.
Am I maybe just specifying my MVC routing template wrong? It's just copied from the given example.

Unfortunately I cannot present that much source code as it is corporate property. Might work on some further reproduction examples if it is not imagineable at all how the routes are all shown as the same request type.
Version used: 0.5.3

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

No branches or pull requests

1 participant