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.
Sonarr/src/Sonarr.Api.V3/Profiles/Language/LanguageProfileSchemaContro...

27 lines
740 B

using Microsoft.AspNetCore.Mvc;
using NzbDrone.Core.Profiles.Languages;
using Sonarr.Http;
namespace Sonarr.Api.V3.Profiles.Language
{
[V3ApiController("languageprofile/schema")]
public class LanguageProfileSchemaController : Controller
{
private readonly ILanguageProfileService _profileService;
public LanguageProfileSchemaController(ILanguageProfileService profileService)
{
_profileService = profileService;
}
[HttpGet]
[Produces("application/json")]
public LanguageProfileResource GetSchema()
{
var qualityProfile = _profileService.GetDefaultProfile(string.Empty);
return qualityProfile.ToResource();
}
}
}