1
0
Fork 0
mirror of https://github.com/Radarr/Radarr synced 2025-01-18 21:52:10 +00:00

fixed indexer endpoint.

This commit is contained in:
kayone 2013-10-01 10:27:22 -07:00
parent c9f5cb0257
commit 1b234f40df
2 changed files with 3 additions and 2 deletions

View file

@ -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")
{ {
} }
} }

View file

@ -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();