diff --git a/PlexRequests.UI/Modules/ApiSettingsModule.cs b/PlexRequests.UI/Modules/ApiSettingsModule.cs index 4d84a2c4a..3ae55afec 100644 --- a/PlexRequests.UI/Modules/ApiSettingsModule.cs +++ b/PlexRequests.UI/Modules/ApiSettingsModule.cs @@ -36,6 +36,7 @@ using Newtonsoft.Json; using PlexRequests.Core; using PlexRequests.Core.SettingModels; +using PlexRequests.Helpers; namespace PlexRequests.UI.Modules { @@ -45,6 +46,9 @@ namespace PlexRequests.UI.Modules ISettingsService plexSettings, ISettingsService cp, ISettingsService sonarr, ISettingsService sr, ISettingsService hp) : base("api", pr) { + Get["GetVersion", "/version"] = x => GetVersion(); + + Get["GetAuthSettings", "/settings/authentication"] = x => GetAuthSettings(); Post["PostAuthSettings", "/settings/authentication"] = x => PostAuthSettings(); @@ -83,6 +87,12 @@ namespace PlexRequests.UI.Modules private ISettingsService SickRageSettings { get; } private ISettingsService HeadphonesSettings { get; } + private Response GetVersion() + { + return ReturnReponse(AssemblyHelper.GetProductVersion()); + } + + private Response GetPrSettings() { var model = new ApiModel();