Allow anonymous auth for AdminController to let AdminAuthMiddleware handle it natively

This commit is contained in:
Халимов Рустам
2026-03-19 23:11:46 +03:00
parent 1f8746bd03
commit 24f029c9ed

View File

@@ -15,7 +15,7 @@ using Microsoft.AspNetCore.Authorization;
namespace Host.Controllers;
[Authorize]
[AllowAnonymous]
[ApiController]
[Route("api/[controller]")]
public class AdminController : ControllerBase