This commit is contained in:
Putoo
2026-04-25 18:11:21 +08:00
parent 5153a4e1e7
commit 8e1a6ff0ec
8 changed files with 836 additions and 14 deletions

View File

@@ -70,6 +70,8 @@ builder.Services.AddCors(options =>
#endregion
builder.Services.AddSignalR();
var app = builder.Build();
app.Services.UseInject();//启用框架
@@ -98,8 +100,9 @@ app.UseHttpsRedirection();
app.UseAuthentication();
app.UseAuthorization();
app.MapControllers();
app.MapHub<ChatHub>("/chatHub");
app.MapControllers();
app.MapControllerRoute(
name: "default",
pattern: "{controller=Home}/{action=Index}/{id?}")