111
This commit is contained in:
@@ -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?}")
|
||||
|
||||
Reference in New Issue
Block a user