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.
20 lines
483 B
20 lines
483 B
using System.Net.Mime;
|
|
using Microsoft.AspNetCore.Mvc.Formatters;
|
|
|
|
namespace Jellyfin.Api.Formatters;
|
|
|
|
/// <summary>
|
|
/// Xml output formatter.
|
|
/// </summary>
|
|
public sealed class XmlOutputFormatter : StringOutputFormatter
|
|
{
|
|
/// <summary>
|
|
/// Initializes a new instance of the <see cref="XmlOutputFormatter"/> class.
|
|
/// </summary>
|
|
public XmlOutputFormatter()
|
|
{
|
|
SupportedMediaTypes.Clear();
|
|
SupportedMediaTypes.Add(MediaTypeNames.Text.Xml);
|
|
}
|
|
}
|