mirror of
https://github.com/Prowlarr/Prowlarr.git
synced 2025-09-17 17:14:18 +02:00
User Agent Stats
This commit is contained in:
@@ -16,12 +16,21 @@ namespace Prowlarr.Api.V1.Indexers
|
||||
{
|
||||
_indexerStatisticsService = indexerStatisticsService;
|
||||
|
||||
GetResourceAll = GetAll;
|
||||
Get("/", x =>
|
||||
{
|
||||
return GetAll();
|
||||
});
|
||||
}
|
||||
|
||||
private List<IndexerStatsResource> GetAll()
|
||||
private IndexerStatsResource GetAll()
|
||||
{
|
||||
return _indexerStatisticsService.IndexerStatistics().ToResource();
|
||||
var indexerResource = new IndexerStatsResource
|
||||
{
|
||||
Indexers = _indexerStatisticsService.IndexerStatistics(),
|
||||
UserAgents = _indexerStatisticsService.UserAgentStatistics(),
|
||||
};
|
||||
|
||||
return indexerResource;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user