Use bearer authorization for API routes
parent
13c57729d8
commit
5cf05d44ff
|
@ -1,9 +1,11 @@
|
||||||
using LANCommander.Data;
|
using LANCommander.Data;
|
||||||
using LANCommander.Data.Models;
|
using LANCommander.Data.Models;
|
||||||
|
using Microsoft.AspNetCore.Authorization;
|
||||||
using Microsoft.AspNetCore.Mvc;
|
using Microsoft.AspNetCore.Mvc;
|
||||||
|
|
||||||
namespace LANCommander.Controllers.Api
|
namespace LANCommander.Controllers.Api
|
||||||
{
|
{
|
||||||
|
[Authorize(AuthenticationSchemes = "Bearer")]
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
public class GamesController : ControllerBase
|
public class GamesController : ControllerBase
|
||||||
|
|
Loading…
Reference in New Issue