Use bearer authorization for API routes

This commit is contained in:
Pat Hartl 2023-01-05 18:36:25 -06:00
parent 13c57729d8
commit 5cf05d44ff

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