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;
|
namespace Host.Controllers;
|
||||||
|
|
||||||
[Authorize]
|
[AllowAnonymous]
|
||||||
[ApiController]
|
[ApiController]
|
||||||
[Route("api/[controller]")]
|
[Route("api/[controller]")]
|
||||||
public class AdminController : ControllerBase
|
public class AdminController : ControllerBase
|
||||||
|
|||||||
Reference in New Issue
Block a user