mirror of
https://github.com/ryzij/AMessanger-Server.git
synced 2026-09-18 11:13:22 +00:00
Изменил путь хаба
This commit is contained in:
@@ -28,6 +28,6 @@ app.MapControllers();
|
||||
|
||||
app.UseSwagger().UseSwaggerUI();
|
||||
|
||||
app.MapHub<ChatHub>("/hubs/chat");
|
||||
app.MapHub<ChatHub>(builder.Configuration.GetSection("Hubs")["MessangerPath"]!);
|
||||
|
||||
app.Run();
|
||||
|
||||
@@ -5,5 +5,8 @@
|
||||
"Microsoft.AspNetCore": "Warning"
|
||||
}
|
||||
},
|
||||
"AllowedHosts": "*"
|
||||
"AllowedHosts": "*",
|
||||
"Hubs": {
|
||||
"MessangerPath": "/messanger/chat"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user