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);
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?
This only changes Services with
[Route] attributes which AuthenticationService doesn't use.
You need to change the
AuthFeature.ServiceRoutes to modify which routes the authentication services should be available from, but it looks like you instead want ServiceStack mounted at a custom /api path.