You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
|
using Lidarr.Http;
|
|
|
|
using NzbDrone.Core.Indexers;
|
|
|
|
using NzbDrone.Core.Validation;
|
|
|
|
|
|
|
|
namespace Lidarr.Api.V1.Indexers
|
|
|
|
{
|
|
|
|
[V1ApiController]
|
|
|
|
public class IndexerController : ProviderControllerBase<IndexerResource, IndexerBulkResource, IIndexer, IndexerDefinition>
|
|
|
|
{
|
|
|
|
public static readonly IndexerResourceMapper ResourceMapper = new ();
|
|
|
|
public static readonly IndexerBulkResourceMapper BulkResourceMapper = new ();
|
|
|
|
|
|
|
|
public IndexerController(IndexerFactory indexerFactory, DownloadClientExistsValidator downloadClientExistsValidator)
|
|
|
|
: base(indexerFactory, "indexer", ResourceMapper, BulkResourceMapper)
|
|
|
|
{
|
|
|
|
SharedValidator.RuleFor(c => c.DownloadClientId).SetValidator(downloadClientExistsValidator);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|