ploeh / Hyprlinkr

A URI building helper library for ASP.NET Web API
MIT License
197 stars 34 forks source link

Support for controller-level attribute routes. Resolves #44 #45

Open joaopbnogueira opened 7 years ago

joaopbnogueira commented 7 years ago

The DefaultRouteDispatcher was modified to check the controller for a Route attribute, similarly to what it does with actions.

As per MSDN documentation Route attributes on actions take precedence over Route attributes on controllers.

If no attribute is found, the DefaultRouteDispatcher works as before.

A new test was created to check this feature (DispatchReturnsResultWithRouterAttributeControllerRouteName).

ploeh commented 7 years ago

Thank you; this is looking good 👍

Did you accidentally check in UpgradeLog.htm?

joaopbnogueira commented 7 years ago

Oops, yes apparently I did. Please reject the pull request so that I can correct my branch and re-submit it. (Or is that unnecessary? Sorry but I'm more of a subversion guy!)