Изменил путь хаба

This commit is contained in:
2026-08-28 13:03:59 +03:00
parent 7b77e7b774
commit f158efc762
2 changed files with 5 additions and 2 deletions
+1 -1
View File
@@ -28,6 +28,6 @@ app.MapControllers();
app.UseSwagger().UseSwaggerUI();
app.MapHub<ChatHub>("/hubs/chat");
app.MapHub<ChatHub>(builder.Configuration.GetSection("Hubs")["MessangerPath"]!);
app.Run();
+4 -1
View File
@@ -5,5 +5,8 @@
"Microsoft.AspNetCore": "Warning"
}
},
"AllowedHosts": "*"
"AllowedHosts": "*",
"Hubs": {
"MessangerPath": "/messanger/chat"
}
}