mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-13 00:23:59 -07:00
New: Plugin support
This commit is contained in:
parent
91f06801ca
commit
f15f7b48a3
171 changed files with 3277 additions and 839 deletions
|
@ -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();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue