Found it! Need to add ApiController attribute to all routes (also derive from controllerbase)
This commit is contained in:
@@ -14,7 +14,8 @@ namespace AyaNova.Api.Controllers
|
||||
[ApiVersion("8.0")]
|
||||
[Route("api/v{version:apiVersion}/")]
|
||||
[AllowAnonymous]
|
||||
public class ApiMetaController : Controller
|
||||
[ApiController]
|
||||
public class ApiMetaController : ControllerBase
|
||||
{
|
||||
private readonly ApiServerState serverState;
|
||||
private readonly ILogger<ApiMetaController> _log;
|
||||
|
||||
Reference in New Issue
Block a user