mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 03:48:06 +02:00
28 lines
730 B
C#
28 lines
730 B
C#
using MediaBrowser.Common.Configuration;
|
|
using MediaBrowser.Model.Branding;
|
|
using ServiceStack;
|
|
|
|
namespace MediaBrowser.Api
|
|
{
|
|
[Route("/Branding/Configuration", "GET", Summary = "Gets branding configuration")]
|
|
public class GetBrandingOptions : IReturn<BrandingOptions>
|
|
{
|
|
}
|
|
|
|
public class BrandingService : BaseApiService
|
|
{
|
|
private readonly IConfigurationManager _config;
|
|
|
|
public BrandingService(IConfigurationManager config)
|
|
{
|
|
_config = config;
|
|
}
|
|
|
|
public object Get(GetBrandingOptions request)
|
|
{
|
|
var result = _config.GetConfiguration<BrandingOptions>("branding");
|
|
|
|
return ToOptimizedResult(result);
|
|
}
|
|
}
|
|
}
|