From 5cf05d44ff00e2199dc77528b39b46989be1accc Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Thu, 5 Jan 2023 18:36:25 -0600 Subject: [PATCH] Use bearer authorization for API routes --- LANCommander/Controllers/Api/GamesController.cs | 2 ++ 1 file changed, 2 insertions(+) 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