aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Common.Implementations/HttpServer/HttpServer.cs
diff options
context:
space:
mode:
Diffstat (limited to 'MediaBrowser.Common.Implementations/HttpServer/HttpServer.cs')
-rw-r--r--MediaBrowser.Common.Implementations/HttpServer/HttpServer.cs5
1 files changed, 5 insertions, 0 deletions
diff --git a/MediaBrowser.Common.Implementations/HttpServer/HttpServer.cs b/MediaBrowser.Common.Implementations/HttpServer/HttpServer.cs
index c0f075c5a..785ca56c6 100644
--- a/MediaBrowser.Common.Implementations/HttpServer/HttpServer.cs
+++ b/MediaBrowser.Common.Implementations/HttpServer/HttpServer.cs
@@ -511,6 +511,11 @@ namespace MediaBrowser.Common.Implementations.HttpServer
EndpointHost.ConfigureHost(this, ServerName, CreateServiceManager());
ContentTypeFilters.Register(ContentType.ProtoBuf, (reqCtx, res, stream) => ProtobufSerializer.SerializeToStream(res, stream), (type, stream) => ProtobufSerializer.DeserializeFromStream(stream, type));
+ foreach (var route in services.SelectMany(i => i.GetRoutes()))
+ {
+ Routes.Add(route.RequestType, route.Path, route.Verbs);
+ }
+
Init();
}
}