diff --git a/LANCommander/Controllers/Api/GamesController.cs b/LANCommander/Controllers/Api/GamesController.cs index 6631fa8..255c421 100644 --- a/LANCommander/Controllers/Api/GamesController.cs +++ b/LANCommander/Controllers/Api/GamesController.cs @@ -1,9 +1,11 @@ using LANCommander.Data; using LANCommander.Data.Models; +using Microsoft.AspNetCore.Authorization; using Microsoft.AspNetCore.Mvc; namespace LANCommander.Controllers.Api { + [Authorize(AuthenticationSchemes = "Bearer")] [Route("api/[controller]")] [ApiController] public class GamesController : ControllerBase