❔ ASP .NET Core Controller Default Route Issue
I have a controller (TestController) with an Index action method.
The url I'm using is "localhost:8372/Test"
This returns a 404 error
If I add
I just created the application but I thought that
The url I'm using is "localhost:8372/Test"
This returns a 404 error
If I add
[Route("[controller]")] the controller works as expected.I just created the application but I thought that
[Route("[controller]")] was the default route. Is it not?