2012-10-14 16 views

回答

3

您可以爲您的服務添加自己的Default.html/.cshtml/etc主頁,也可以在EndpointHostConfig中指定DefaultRedirectPathMetadataRedirectPath

+1

乾杯@mythz,我沒想過檢查重定向路徑,我只是假設如果通過關閉元數據,重定向也會關閉。 – JustinN

+0

鏈接已損壞。 – Robin

+0

工作鏈接是:https://github.com/ServiceStackV3/ServiceStack.Contrib/blob/master/src/ServiceStack.MonoTouch/EndpointHostConfig.cs – evgenyl

1
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 
    });