Use bearer authorization for API routes
This commit is contained in:
		
							parent
							
								
									13c57729d8
								
							
						
					
					
						commit
						5cf05d44ff
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -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…
	
	Add table
		
		Reference in a new issue
	
	 Pat Hartl
						Pat Hartl