mirror of
https://github.com/Sonarr/Sonarr.git
synced 2026-04-23 22:25:56 -04:00
20 lines
460 B
C#
20 lines
460 B
C#
using Microsoft.AspNetCore.Mvc;
|
|
using NzbDrone.Core.Parser.Model;
|
|
using Sonarr.Http;
|
|
|
|
namespace Sonarr.Api.V5.Indexers;
|
|
|
|
[V5ApiController]
|
|
public class IndexerFlagController : Controller
|
|
{
|
|
[HttpGet]
|
|
public List<IndexerFlagResource> GetAll()
|
|
{
|
|
return Enum.GetValues(typeof(IndexerFlags)).Cast<IndexerFlags>().Select(f => new IndexerFlagResource
|
|
{
|
|
Id = (int)f,
|
|
Name = f.ToString()
|
|
}).ToList();
|
|
}
|
|
}
|