I have web api project and I have *.html page and I need run it after run my project but I don't know how do it. In MVC I use MapRoute like this:
routes.MapRoute(
name: "Default",
url: "{controller}/{action}/{id}",
defaults: new { controller = "Home", action = "Index", id = UrlParameter.Optional }
);
But I don't know how do it in web api. I have next routes config:
config.Routes.MapHttpRoute("DefaultApi", "api/{controller}/{action}/{id}", new { id = RouteParameter.Optional });
and how to add other config for run my html page? Thanks.
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire