I have a Net Core 2.1 console app that uses Kestrel for hosting/listening with the following endpoint.
[Route("[controller]")]
public class NameController
{
[HttpGet]
public async Task<IActionResult> Get()
{
return new OkObjectResult("Response");
}
}
When I run it I get the console with the following text...
Now listening on: http://localhost:5000
Now listening on: https://localhost:5001
But when I try to access that Get() method via these URLs I get a 404.
http://localhost:5000/ControllerName
https://localhost:5001/ControllerName
If it's listening I should be able to access the endpoint right?