0

I have a Controller called AreasController, I added Areas folder to the project so I can create some Areas, by doing this I noticed that the url: /Areas is pointing to Areas folder not to my AreasController.

Is there a way to solve this, or I'll have to rename AreasController.

Raphael Ribeiro
  • 529
  • 5
  • 18

1 Answers1

0

You can specify the associated route to that controller by adding an annotation on the top of the class name

as here:

[Route("Areas")]

for more reading please check Microsoft docs

zombie
  • 5,069
  • 3
  • 25
  • 54