diff options
| author | KGT1 <kilian.gamn@gmx.de> | 2025-04-01 01:46:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-03-31 17:46:01 -0600 |
| commit | 14b785d188647ae896c5d20869ab6bcc967fcfc2 (patch) | |
| tree | b62376f9a61f132f6218b762834fe7b17a26f3be /Jellyfin.Api/Controllers/BrandingController.cs | |
| parent | 940c4e8ba895f02fdc2f04932cd1eea9f7cc8cbf (diff) | |
Preserve SplashscreenLocation when updating branding config (#13756)
* add BrandingOptionsDto and add branding endpoints
* refactor new HttpGet Configuration Branding into existing API calls
* Add BrandingOptions to _ignoredConfigurations for openAPI
* rename BrandOptionsDto to BrandingOptionsDto
Diffstat (limited to 'Jellyfin.Api/Controllers/BrandingController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/BrandingController.cs | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/BrandingController.cs b/Jellyfin.Api/Controllers/BrandingController.cs index 3c2c4b4db..1d948ff20 100644 --- a/Jellyfin.Api/Controllers/BrandingController.cs +++ b/Jellyfin.Api/Controllers/BrandingController.cs @@ -29,9 +29,18 @@ public class BrandingController : BaseJellyfinApiController /// <returns>An <see cref="OkResult"/> containing the branding configuration.</returns> [HttpGet("Configuration")] [ProducesResponseType(StatusCodes.Status200OK)] - public ActionResult<BrandingOptions> GetBrandingOptions() + public ActionResult<BrandingOptionsDto> GetBrandingOptions() { - return _serverConfigurationManager.GetConfiguration<BrandingOptions>("branding"); + var brandingOptions = _serverConfigurationManager.GetConfiguration<BrandingOptions>("branding"); + + var brandingOptionsDto = new BrandingOptionsDto + { + LoginDisclaimer = brandingOptions.LoginDisclaimer, + CustomCss = brandingOptions.CustomCss, + SplashscreenEnabled = brandingOptions.SplashscreenEnabled + }; + + return brandingOptionsDto; } /// <summary> |
