mirror of
https://github.com/Radarr/Radarr
synced 2025-01-18 21:52:10 +00:00
fixed indexer endpoint.
This commit is contained in:
parent
c9f5cb0257
commit
1b234f40df
2 changed files with 3 additions and 2 deletions
|
@ -5,7 +5,7 @@ namespace NzbDrone.Api.Indexers
|
||||||
public class IndexerModule : ProviderModuleBase<ProviderResource, IIndexer, IndexerDefinition>
|
public class IndexerModule : ProviderModuleBase<ProviderResource, IIndexer, IndexerDefinition>
|
||||||
{
|
{
|
||||||
public IndexerModule(IndexerFactory indexerFactory)
|
public IndexerModule(IndexerFactory indexerFactory)
|
||||||
: base(indexerFactory)
|
: base(indexerFactory, "indexer")
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -19,7 +19,8 @@ public abstract class ProviderModuleBase<TProviderResource, TProvider, TProvider
|
||||||
{
|
{
|
||||||
private readonly IProviderFactory<TProvider, TProviderDefinition> _providerFactory;
|
private readonly IProviderFactory<TProvider, TProviderDefinition> _providerFactory;
|
||||||
|
|
||||||
protected ProviderModuleBase(IProviderFactory<TProvider, TProviderDefinition> providerFactory)
|
protected ProviderModuleBase(IProviderFactory<TProvider, TProviderDefinition> providerFactory, string resource)
|
||||||
|
: base(resource)
|
||||||
{
|
{
|
||||||
_providerFactory = providerFactory;
|
_providerFactory = providerFactory;
|
||||||
Get["templates"] = x => GetTemplates();
|
Get["templates"] = x => GetTemplates();
|
||||||
|
|
Loading…
Reference in a new issue