mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-20 15:55:25 +03:00
added the beginning of a service stack abstraction
This commit is contained in:
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user