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/Authentication/AuthenticationController.cs

25 lines
598 B

using System.Collections.Generic;
using Microsoft.AspNetCore.Mvc;
using NzbDrone.Core.Notifications.Plex.PlexTv;
using Radarr.Http;
namespace Radarr.Api.V3.Authentication
{
[V3ApiController]
public class AuthenticationController : Controller
{
private readonly IPlexTvService _plex;
public AuthenticationController(IPlexTvService plex)
{
_plex = plex;
}
[HttpGet("plex/resources")]
public List<PlexTvResource> GetResources(string accessToken)
{
return _plex.GetResources(accessToken);
}
}
}