New: Plugin support

This commit is contained in:
ta264 2022-07-19 21:08:53 +01:00 committed by Bogdan
parent 91f06801ca
commit f15f7b48a3
171 changed files with 3277 additions and 839 deletions

View file

@ -0,0 +1,24 @@
using Lidarr.Http;
using Microsoft.AspNetCore.Mvc;
using NzbDrone.Core.Profiles.Delay;
namespace Lidarr.Api.V1.Profiles.Delay
{
[V1ApiController("delayprofile/schema")]
public class DelayProfileSchemaController : Controller
{
private readonly IDelayProfileService _delayProfileService;
public DelayProfileSchemaController(IDelayProfileService delayProfileService)
{
_delayProfileService = delayProfileService;
}
[HttpGet]
[Produces("application/json")]
public DelayProfileResource GetSchema()
{
return _delayProfileService.GetDefaultProfile().ToResource();
}
}
}