mirror of
https://github.com/Radarr/Radarr.git
synced 2026-03-05 13:21:25 -05:00
24 lines
682 B
C#
24 lines
682 B
C#
using NzbDrone.Core.Configuration;
|
|
using Radarr.Http;
|
|
using Radarr.Http.Validation;
|
|
|
|
namespace Radarr.Api.V4.Config
|
|
{
|
|
[V4ApiController("config/importlist")]
|
|
|
|
public class ImportListConfigController : ConfigController<ImportListConfigResource>
|
|
{
|
|
public ImportListConfigController(IConfigService configService)
|
|
: base(configService)
|
|
{
|
|
SharedValidator.RuleFor(c => c.ImportListSyncInterval)
|
|
.IsValidImportListSyncInterval();
|
|
}
|
|
|
|
protected override ImportListConfigResource ToResource(IConfigService model)
|
|
{
|
|
return ImportListConfigResourceMapper.ToResource(model);
|
|
}
|
|
}
|
|
}
|