SignalR chat connection OK
This commit is contained in:
parent
bb773ba29a
commit
b22a26f61e
43 changed files with 430 additions and 252 deletions
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue