jellyfin-server/MediaBrowser.Api/HttpHandlers/ServerConfigurationHandler.cs
2012-09-02 09:45:02 -04:00

16 lines
485 B
C#

using System.Threading.Tasks;
using MediaBrowser.Common.Net.Handlers;
using MediaBrowser.Controller;
using MediaBrowser.Model.Configuration;
namespace MediaBrowser.Api.HttpHandlers
{
class ServerConfigurationHandler : BaseSerializationHandler<ServerConfiguration>
{
protected override Task<ServerConfiguration> GetObjectToSerialize()
{
return Task.FromResult<ServerConfiguration>(Kernel.Instance.Configuration);
}
}
}