diff --git a/server/RdtClient.Web/Program.cs b/server/RdtClient.Web/Program.cs index 3bba982..585a52b 100644 --- a/server/RdtClient.Web/Program.cs +++ b/server/RdtClient.Web/Program.cs @@ -174,11 +174,14 @@ try app.UseRouting(); app.UseAuthentication(); + app.UseAuthorization(); - - app.MapHub("/hub"); - - app.MapControllers(); + + app.UseEndpoints(endpoints => + { + endpoints.MapHub("/hub"); + endpoints.MapControllers(); + }); app.MapWhen(x => !x.Request.Path.StartsWithSegments("/api"), routeBuilder => {