From 21490ee2d50920378b0be9a45c0923f17f1e5306 Mon Sep 17 00:00:00 2001 From: Roger Versluis Date: Wed, 15 Nov 2023 08:53:23 -0700 Subject: [PATCH] Revert broken upgrade. --- server/RdtClient.Web/Program.cs | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) 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 => {