fixed indexer endpoint.

pull/33/merge
kayone 11 years ago
parent c9f5cb0257
commit 1b234f40df

@ -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 @@ namespace NzbDrone.Api
{ {
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…
Cancel
Save