.net editor MVC

.net editor MVC

montoyammontoyam Posts: 568Questions: 136Answers: 5

I am able to run the .net demo project just fine. I then created my own project, added references, etc. I am getting a 404 error when running:
Requested URL: /Web/api/Categories

I am thinking that these api pages are created dynamically because I don't see any in the demo project either. What am I doing wrong?

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,446Questions: 1Answers: 10,054 Site admin
    Answer ✓

    In MVC the route (path / url / whatever you want to call it) is defined by the Controller class and the method names - see this part of the manual.

    In WebAPI (which personally I prefer to use in combination with Editor) you use the Route() decorator to specify the path.

    Allan

This discussion has been closed.