SignalR chat connection OK

This commit is contained in:
Paul Schneider 2026-10-03 22:47:47 +01:00
commit b22a26f61e
Signed by: notazof
GPG key ID: AD4B9B545FBD7D12
43 changed files with 430 additions and 252 deletions

View file

@ -11,6 +11,7 @@ using Yavsc.Models;
using Yavsc;
using Yavsc.Server.Helpers;
using Yavsc.Services;
using Yavsc.Server.Hubs;
internal class Program
{
@ -114,13 +115,11 @@ internal class Program
.UseRouting()
.UseAuthentication()
.UseAuthorization()
.UseCors("default")
;
.UseCors("default");
app.MapIdentityApi<ApplicationUser>().RequireAuthorization("ApiScope");
app.MapDefaultControllerRoute();
app.UseSession();
app.MapHub<ChatHub>("/" + Constants.ChatHubPath);
await app.RunAsync();
}
}