-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Consider adding a UseMvcWithDefaultRoute extension on BuilderExtensions that adds default routes to the route collection #1885
Comments
I'd like to state that it is critical that trivial apps not require a bunch of setup code. Attribute routing solves this to a good degree. For conventional routing users it's now a bit of a hassle. If we think attribute routing is the recommended approach for the "getting started" scenario, then I'd concede that the importance of this feature is lower. (And, it can be added at any time.) |
The work involved in building this feature is negligible. Just need a good name. -----Original Message----- I'd like to state that it is critical that trivial apps not require a bunch of setup code. |
Some ideas:
|
We use the term |
@ajaybhargavb let's go with the name |
Added `UseMvcWithDefaultRoute` extension method to `BuilderExtensions`, which adds Mvc to the request pipeline with a default route to the `Index` action on the `HomeController`. #1885
Based on the discussion here - https://github.com/aspnet/Mvc/pull/1880/files#r23486914.
This would be a convenience method that is essentially what
UseMvc
did prior to it being removed as part of #1880The text was updated successfully, but these errors were encountered: