The change here is to make an attribute route defined on a base class inherited only if no other routes were defined 'closer' to the controller class. To put another way, attribute routes can either be inherited or overridden, you can't inherit + add your own. |
||
|---|---|---|
| .. | ||
| Areas | ||
| Controllers | ||
| wwwroot | ||
| CountryNeutralAttribute.cs | ||
| CountrySpecificAttribute.cs | ||
| HttpMergeAttribute.cs | ||
| RoutingWebSite.xproj | ||
| Startup.cs | ||
| TestResponseGenerator.cs | ||
| project.json | ||
| readme.md | ||
readme.md
RoutingWebSite
This web site illustrates how to use conventional and attribute routes.