1
내 웹 API가 제대로 작동하지만 영역 폴더에 동일한 코드를 쓸 때 작동하지 않습니다.하위 폴더에서 웹 API가 작동하지 않습니다.
public static class WebApiConfig
{
public static void Register(HttpConfiguration config)
{
config.Routes.MapHttpRoute(
name: "FeatureA",
routeTemplate: "FeatureA/api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
config.Routes.MapHttpRoute(
name: "DefaultApi",
routeTemplate: "api/{controller}/{id}",
defaults: new { id = RouteParameter.Optional }
);
}
}
'작동하지 않는다 '는 것은 무슨 뜻입니까? 오류가 있습니까? –
404 페이지를 찾을 수 없습니다. –