You probably need app.UseEndpoints even if you don't need everything inside. You could maybe leave it blank, and especially if each Controller has...
[ApiController]
[Route("api/[controller]")]
...decorating it. In that scenario have:
app.UseEndpoints(endpoints =>
{
});
No comments:
Post a Comment