You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
585 B
24 lines
585 B
4 years ago
|
using System;
|
||
|
using System.Collections.Generic;
|
||
|
using System.Linq;
|
||
4 years ago
|
using Microsoft.AspNetCore.Mvc;
|
||
4 years ago
|
using NzbDrone.Core.Parser.Model;
|
||
4 years ago
|
using Prowlarr.Http;
|
||
4 years ago
|
|
||
4 years ago
|
namespace Prowlarr.Api.V1.Indexers
|
||
4 years ago
|
{
|
||
4 years ago
|
[V1ApiController]
|
||
|
public class IndexerFlagController : Controller
|
||
4 years ago
|
{
|
||
4 years ago
|
[HttpGet]
|
||
|
public List<IndexerFlagResource> GetAll()
|
||
4 years ago
|
{
|
||
|
return Enum.GetValues(typeof(IndexerFlags)).Cast<IndexerFlags>().Select(f => new IndexerFlagResource
|
||
|
{
|
||
|
Id = (int)f,
|
||
|
Name = f.ToString()
|
||
|
}).ToList();
|
||
|
}
|
||
|
}
|
||
|
}
|