ASP.NET Core 3.1 cannot process Axios request until ApiController attribute is added
问题 I have the following issue. Whenever I send something to my Api endpoint, ASP.NET Core 3.1 is not able to process the request. However, when I add the ApiController attribute it works perfectly fine. My code is correct but only works when I add this attribute. How is that so? For reference, here's my code API [ApiController] //Remove this and the code breaks [Route("api/SomeApi")] public class ApiController : Controller { private readonly IService service; public ApiController(IService