In the Apphost.cs, I add prefix to all my api.
public override RouteAttribute[] GetRouteAttributes(Type requestType)
{
var routes = base.GetRouteAttributes(requestType);
routes.Each(x => x.Path = "/api" + x.Path);
return routes;
}
in the client, i call api like this
var client = new JsonServiceClient(“http://host/api/”);
But i find i can not call /auth, may be it doesn’t has “api” prefix.
how do i resolve this?