|
|
|
@ -105,6 +105,8 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|
|
|
|
DefaultRedirectPath = defaultRedirectpath;
|
|
|
|
|
_logger = logger;
|
|
|
|
|
|
|
|
|
|
ServiceStack.Logging.LogManager.LogFactory = new NLogFactory();
|
|
|
|
|
|
|
|
|
|
EndpointHostConfig.Instance.ServiceStackHandlerFactoryPath = null;
|
|
|
|
|
EndpointHostConfig.Instance.MetadataRedirectPath = "metadata";
|
|
|
|
|
|
|
|
|
@ -136,8 +138,6 @@ namespace MediaBrowser.Server.Implementations.HttpServer
|
|
|
|
|
Plugins.Add(new SwaggerFeature());
|
|
|
|
|
Plugins.Add(new CorsFeature());
|
|
|
|
|
|
|
|
|
|
ServiceStack.Logging.LogManager.LogFactory = new NLogFactory();
|
|
|
|
|
|
|
|
|
|
ResponseFilters.Add((req, res, dto) =>
|
|
|
|
|
{
|
|
|
|
|
var exception = dto as Exception;
|
|
|
|
|