Use bearer authorization for API routes

dashboard
Pat Hartl 2023-01-05 18:36:25 -06:00
parent 13c57729d8
commit 5cf05d44ff
1 changed files with 2 additions and 0 deletions

View File

@ -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