mirror of
https://github.com/lidarr/lidarr.git
synced 2025-07-05 20:42:19 -07:00
24 lines
678 B
C#
24 lines
678 B
C#
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();
|
|
}
|
|
}
|
|
}
|