mirror of https://github.com/Radarr/Radarr
27 lines
732 B
C#
27 lines
732 B
C#
using NzbDrone.Core.Indexers;
|
|
using Radarr.Http;
|
|
|
|
namespace Radarr.Api.V3.Indexers
|
|
{
|
|
[V3ApiController]
|
|
public class IndexerController : ProviderControllerBase<IndexerResource, IIndexer, IndexerDefinition>
|
|
{
|
|
public static readonly IndexerResourceMapper ResourceMapper = new IndexerResourceMapper();
|
|
|
|
public IndexerController(IndexerFactory indexerFactory)
|
|
: base(indexerFactory, "indexer", ResourceMapper)
|
|
{
|
|
}
|
|
|
|
protected override void Validate(IndexerDefinition definition, bool includeWarnings)
|
|
{
|
|
if (!definition.Enable)
|
|
{
|
|
return;
|
|
}
|
|
|
|
base.Validate(definition, includeWarnings);
|
|
}
|
|
}
|
|
}
|