Found it! Need to add ApiController attribute to all routes (also derive from controllerbase)

This commit is contained in:
2019-10-18 18:57:50 +00:00
parent 0d42f163fc
commit c5bd733302
4 changed files with 787 additions and 57 deletions

View File

@@ -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;