This is a TEMPORARY fix to unblock WebFX samples.
More changes are coming to the routing API surface, so this will be cleaned up with a final version soon.
This commit is contained in:
parent
e87f8c372c
commit
1cb8a049f2
|
|
@ -26,7 +26,7 @@ namespace MvcSample.Web
|
|||
|
||||
var endpoint = ActivatorUtilities.CreateInstance<RouteEndpoint>(mvcServices.Services);
|
||||
|
||||
router.Add(new TemplateRoute(
|
||||
router.Routes.Add(new TemplateRoute(
|
||||
endpoint,
|
||||
"{controller}/{action}",
|
||||
new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) { { "controller", "Home" }, { "action", "Index" } }));
|
||||
|
|
|
|||
|
|
@ -40,12 +40,12 @@ namespace MvcSample
|
|||
|
||||
var endpoint = ActivatorUtilities.CreateInstance<RouteEndpoint>(mvcServices.Services);
|
||||
|
||||
router.Add(new TemplateRoute(
|
||||
router.Routes.Add(new TemplateRoute(
|
||||
endpoint,
|
||||
"{controller}",
|
||||
new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) { { "controller", "Home" } }));
|
||||
|
||||
router.Add(new TemplateRoute(
|
||||
router.Routes.Add(new TemplateRoute(
|
||||
endpoint,
|
||||
"{controller}/{action}",
|
||||
new Dictionary<string, object>(StringComparer.OrdinalIgnoreCase) { { "controller", "Home" }, { "action", "Index" } }));
|
||||
|
|
|
|||
Loading…
Reference in New Issue