using System; using System.Collections.Generic; using System.Linq; using Lidarr.Http; using Microsoft.AspNetCore.Mvc; using NzbDrone.Core.Parser.Model; namespace Lidarr.Api.V1.Indexers { [V1ApiController] public class IndexerFlagController : Controller { [HttpGet] public List GetAll() { return Enum.GetValues(typeof(IndexerFlags)).Cast().Select(f => new IndexerFlagResource { Id = (int)f, Name = f.ToString() }).ToList(); } } }