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 IndexerModule(IndexerFactory indexerFactory)
: base(indexerFactory)
: base(indexerFactory, "indexer")
{
}
}

View File

@ -19,7 +19,8 @@ namespace NzbDrone.Api
{
private readonly IProviderFactory<TProvider, TProviderDefinition> _providerFactory;
protected ProviderModuleBase(IProviderFactory<TProvider, TProviderDefinition> providerFactory)
protected ProviderModuleBase(IProviderFactory<TProvider, TProviderDefinition> providerFactory, string resource)
: base(resource)
{
_providerFactory = providerFactory;
Get["templates"] = x => GetTemplates();