Switch Hosted template to UseBlazor<Startup> for consistency with server-side template. Fixes #1473
This commit is contained in:
parent
86b532cd47
commit
0942b5aa0d
|
|
@ -1,4 +1,4 @@
|
||||||
using Microsoft.AspNetCore.Blazor.Server;
|
using Microsoft.AspNetCore.Blazor.Server;
|
||||||
using Microsoft.AspNetCore.Builder;
|
using Microsoft.AspNetCore.Builder;
|
||||||
using Microsoft.AspNetCore.Hosting;
|
using Microsoft.AspNetCore.Hosting;
|
||||||
using Microsoft.AspNetCore.ResponseCompression;
|
using Microsoft.AspNetCore.ResponseCompression;
|
||||||
|
|
@ -42,7 +42,7 @@ namespace BlazorHosted_CSharp.Server
|
||||||
routes.MapRoute(name: "default", template: "{controller}/{action}/{id?}");
|
routes.MapRoute(name: "default", template: "{controller}/{action}/{id?}");
|
||||||
});
|
});
|
||||||
|
|
||||||
app.UseBlazor<Client.Program>();
|
app.UseBlazor<Client.Startup>();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue