fix 401 authorize problem

This commit is contained in:
beo3000 2025-12-29 17:16:44 +01:00
parent 6f419b3373
commit e75ea84e66
1 changed files with 1 additions and 2 deletions

View File

@ -1,5 +1,4 @@
using Koogle.Application.DTOs; using Koogle.Application.DTOs;
using Microsoft.AspNetCore.Authorization;
using Microsoft.AspNetCore.SignalR; using Microsoft.AspNetCore.SignalR;
namespace Koogle.Web.Hubs; namespace Koogle.Web.Hubs;
@ -7,8 +6,8 @@ namespace Koogle.Web.Hubs;
/// <summary> /// <summary>
/// SignalR hub for real-time game state synchronization. /// SignalR hub for real-time game state synchronization.
/// Clients join game-specific groups to receive updates. /// Clients join game-specific groups to receive updates.
/// Note: Authorization handled at page level (DayDetails requires ClubViewer policy).
/// </summary> /// </summary>
[Authorize]
public class GameHub : Hub<IGameHubClient> public class GameHub : Hub<IGameHubClient>
{ {
private readonly ILogger<GameHub> _logger; private readonly ILogger<GameHub> _logger;