aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Ullmer <davidullmer@outlook.de>2021-08-17 19:39:48 +0200
committerCody Robibero <cody@robibe.ro>2022-01-04 08:20:16 -0700
commit6ad020acb2cb94ae577b05d6b018115d69259e26 (patch)
tree45afaa4f5ec2cb0fdfe5689dd14ac55ab9c4e326
parentc70452b4a4046b82e26a2e73b1d67e8f82fe0e32 (diff)
Include Splashscreen url in the branding endpoint
-rw-r--r--MediaBrowser.Model/Branding/BrandingOptions.cs13
1 files changed, 12 insertions, 1 deletions
diff --git a/MediaBrowser.Model/Branding/BrandingOptions.cs b/MediaBrowser.Model/Branding/BrandingOptions.cs
index ee182207d..18a177e2d 100644
--- a/MediaBrowser.Model/Branding/BrandingOptions.cs
+++ b/MediaBrowser.Model/Branding/BrandingOptions.cs
@@ -1,3 +1,4 @@
+using System.Text.Json.Serialization;
using System.Xml.Serialization;
#pragma warning disable CS1591
@@ -21,7 +22,17 @@ namespace MediaBrowser.Model.Branding
/// <summary>
/// Gets or sets the splashscreen location on disk.
/// </summary>
- /// <value>The location of the user splashscreen.</value>
+ /// <remarks>
+ /// Not served via the API.
+ /// Only used to save the custom uploaded user splashscreen in the configuration file.
+ /// </remarks>
+ [JsonIgnore]
public string? SplashscreenLocation { get; set; }
+
+ /// <summary>
+ /// Gets the splashscreen url.
+ /// </summary>
+ [XmlIgnore]
+ public string SplashscreenUrl => "/Branding/Splashscreen";
}
}