using System.Collections.Generic;
using System.Net.Mime;
using Jellyfin.Api.Results;
using Jellyfin.Extensions.Json;
using Microsoft.AspNetCore.Mvc;
namespace Jellyfin.Api
{
///
/// Base api controller for the API setting a default route.
///
[ApiController]
[Route("[controller]")]
[Produces(
MediaTypeNames.Application.Json,
JsonDefaults.CamelCaseMediaType,
JsonDefaults.PascalCaseMediaType)]
public class BaseJellyfinApiController : ControllerBase
{
///
/// Create a new .
///
/// The value to return.
/// The type to return.
/// The .
protected ActionResult> Ok(IEnumerable? value)
=> new OkResult?>(value);
///
/// Create a new .
///
/// The value to return.
/// The type to return.
/// The .
protected ActionResult Ok(T value)
=> new OkResult(value);
}
}