diff --git a/aspnetcore/signalr/streaming/samples/3.0/Startup.cs b/aspnetcore/signalr/streaming/samples/3.0/Startup.cs index 9bf3a1f3d8..d1716d46cc 100644 --- a/aspnetcore/signalr/streaming/samples/3.0/Startup.cs +++ b/aspnetcore/signalr/streaming/samples/3.0/Startup.cs @@ -60,7 +60,7 @@ namespace SignalRChat app.UseEndpoints(endpoints => { endpoints.MapHub("/streamHub"); - endpoints.MapControllerRoute("default", "{controller=Home}/{action=Index}/{id?}"); + endpoints.MapRazorPages(); }); } }