Allow anonymous auth for AdminController to let AdminAuthMiddleware handle it natively
This commit is contained in:
@@ -15,7 +15,7 @@ using Microsoft.AspNetCore.Authorization;
|
||||
|
||||
namespace Host.Controllers;
|
||||
|
||||
[Authorize]
|
||||
[AllowAnonymous]
|
||||
[ApiController]
|
||||
[Route("api/[controller]")]
|
||||
public class AdminController : ControllerBase
|
||||
|
||||
Reference in New Issue
Block a user