Files
jellyfin-jellyfin-1/Jellyfin.Api/Formatters/CssOutputFormatter.cs

20 lines
483 B
C#
Raw Normal View History

using System.Net.Mime;
2020-06-06 16:51:21 -06:00
using Microsoft.AspNetCore.Mvc.Formatters;
2023-01-31 12:18:10 +01:00
namespace Jellyfin.Api.Formatters;
/// <summary>
/// Css output formatter.
/// </summary>
public sealed class CssOutputFormatter : StringOutputFormatter
2020-06-06 16:51:21 -06:00
{
/// <summary>
2023-01-31 12:18:10 +01:00
/// Initializes a new instance of the <see cref="CssOutputFormatter"/> class.
2020-06-06 16:51:21 -06:00
/// </summary>
2023-01-31 12:18:10 +01:00
public CssOutputFormatter()
2020-06-06 16:51:21 -06:00
{
SupportedMediaTypes.Clear();
SupportedMediaTypes.Add(MediaTypeNames.Text.Css);
2020-06-06 16:51:21 -06:00
}
2020-06-06 16:52:23 -06:00
}