Revert broken upgrade.
This commit is contained in:
parent
5089690f4e
commit
21490ee2d5
1 changed files with 7 additions and 4 deletions
|
|
@ -174,11 +174,14 @@ try
|
||||||
app.UseRouting();
|
app.UseRouting();
|
||||||
|
|
||||||
app.UseAuthentication();
|
app.UseAuthentication();
|
||||||
|
|
||||||
app.UseAuthorization();
|
app.UseAuthorization();
|
||||||
|
|
||||||
app.MapHub<RdtHub>("/hub");
|
app.UseEndpoints(endpoints =>
|
||||||
|
{
|
||||||
app.MapControllers();
|
endpoints.MapHub<RdtHub>("/hub");
|
||||||
|
endpoints.MapControllers();
|
||||||
|
});
|
||||||
|
|
||||||
app.MapWhen(x => !x.Request.Path.StartsWithSegments("/api"), routeBuilder =>
|
app.MapWhen(x => !x.Request.Path.StartsWithSegments("/api"), routeBuilder =>
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue