Reputation: 926
I have ServiceStack installed via NuGet, and I have added the following Config within SetConfig:
EnableFeatures = Feature.All.Remove(Feature.Metadata)
which has removed the physical page from /metadata however, each time I try to hit the root, I am still redirected to /metadata. I could not see anything else allowing me to handle this on the official page ( https://github.com/ServiceStack/ServiceStack/wiki/Metadata-page ) - any help would be highly appreciated!
Upvotes: 3
Views: 2858
Reputation: 16246
SetConfig(new EndpointHostConfig {
EnableFeatures = Feature.All
.Remove(Feature.Metadata)
//.Remove(Feature.PredefinedRoutes)
//.Add(Feature.ProtoBuf)
//... and more
,
DefaultRedirectPath = "/default", //set default|index|home
//... and more
});
Upvotes: 1
Reputation: 143339
You can add your own Default.html/.cshtml/etc home page for your services or you can specify the in the DefaultRedirectPath
or MetadataRedirectPath
in the EndpointHostConfig.
Upvotes: 3