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.
Radarr/src/Radarr.Api.V3/Movies/WantedController.cs

24 lines
536 B

using Microsoft.AspNetCore.Mvc;
using NzbDrone.Core.Movies;
using Radarr.Http;
namespace Radarr.Api.V3.Movies
{
[V3ApiController("wanted")]
public class WantedController : Controller
{
private readonly IMovieService _movieService;
public WantedController(IMovieService movieService)
{
_movieService = movieService;
}
[HttpGet]
public MissingWantedResource GetWanted()
{
return _movieService.GetWantedMovies().ToResource();
}
}
}