Use bearer authorization for API routes
parent
13c57729d8
commit
5cf05d44ff
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue