You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a host that runs a set of normal MVC routes (with views) and MVC API routes. These are segmented this way:
/{route} -> views
/api/v{version:apiVersion}/{route} -> API
If I have a route like this:
[GET] /myroute
And for some reason, I call it with a POST I get the following error, instead of the expected 404:
The HTTP resource that matches the request URI 'http://localhost:5000/myroute' does not support HTTP method 'POST'.
The problem here is that the "versioning middleware" is kicking in and I haven't found a way to tell it to completly ignore the MVC controllers (or a specific one for that matter).