-
Previously I was using...
But I now need to process the files and use...
This works fine for all the pages I want to process, but if the user enters the url without a page defined eg http://myhost.com/, then they get a 404 exception response. My WebApiController is never called. Can you define a default document with the WebApi like you can with static folders, or do you handle it in some other way? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Solved it myself. My controller needs to have an additional handler for the base root "/"... |
Beta Was this translation helpful? Give feedback.
Solved it myself. My controller needs to have an additional handler for the base root "/"...
[Route(HttpVerbs.Get, "/")]
in addition to the handler for all the other pages...
[Route(HttpVerbs.Get, "/{req}")]