|
|
|
@ -13,8 +13,9 @@ namespace Ombi.Controllers.V1.External
|
|
|
|
|
{
|
|
|
|
|
[Authorize]
|
|
|
|
|
[ApiV1]
|
|
|
|
|
[ApiController]
|
|
|
|
|
[Produces("application/json")]
|
|
|
|
|
public class RadarrController : Controller
|
|
|
|
|
public class RadarrController : ControllerBase
|
|
|
|
|
{
|
|
|
|
|
public RadarrController(IRadarrApi radarr, ISettingsService<RadarrSettings> settings,
|
|
|
|
|
ICacheService mem)
|
|
|
|
@ -39,6 +40,14 @@ namespace Ombi.Controllers.V1.External
|
|
|
|
|
return await RadarrApi.GetProfiles(settings.ApiKey, settings.FullUri);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
[HttpGet("enabled")]
|
|
|
|
|
[PowerUser]
|
|
|
|
|
public async Task<bool> Enabled()
|
|
|
|
|
{
|
|
|
|
|
var settings = await RadarrSettings.GetSettingsAsync();
|
|
|
|
|
return settings.Enabled;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Gets the Radarr root folders.
|
|
|
|
|
/// </summary>
|
|
|
|
|