mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-22 17:47:53 +00:00
Use MapSpaFallbackRoute in ReactServices and demo
This commit is contained in:
@@ -58,9 +58,8 @@ namespace ReactExample
|
||||
// Add MVC to the request pipeline.
|
||||
app.UseMvc(routes =>
|
||||
{
|
||||
routes.MapRoute(
|
||||
routes.MapSpaFallbackRoute(
|
||||
name: "default",
|
||||
template: "{pageIndex?}",
|
||||
defaults: new { controller="Home", action = "Index" });
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user