From f158efc762294407803de78df660c16cffaa3107 Mon Sep 17 00:00:00 2001 From: ryzij Date: Fri, 28 Aug 2026 13:03:59 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D0=B7=D0=BC=D0=B5=D0=BD=D0=B8=D0=BB=20?= =?UTF-8?q?=D0=BF=D1=83=D1=82=D1=8C=20=D1=85=D0=B0=D0=B1=D0=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- AMessanger.API/Program.cs | 2 +- AMessanger.API/appsettings.json | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/AMessanger.API/Program.cs b/AMessanger.API/Program.cs index 04a7f7d..b085c96 100644 --- a/AMessanger.API/Program.cs +++ b/AMessanger.API/Program.cs @@ -28,6 +28,6 @@ app.MapControllers(); app.UseSwagger().UseSwaggerUI(); -app.MapHub("/hubs/chat"); +app.MapHub(builder.Configuration.GetSection("Hubs")["MessangerPath"]!); app.Run(); diff --git a/AMessanger.API/appsettings.json b/AMessanger.API/appsettings.json index 10f68b8..6fdd0e7 100644 --- a/AMessanger.API/appsettings.json +++ b/AMessanger.API/appsettings.json @@ -5,5 +5,8 @@ "Microsoft.AspNetCore": "Warning" } }, - "AllowedHosts": "*" + "AllowedHosts": "*", + "Hubs": { + "MessangerPath": "/messanger/chat" + } }