2024-10-31 17:02:06 +01:00
|
|
|
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>
|
2024-10-31 17:02:06 +01:00
|
|
|
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
|
|
|
{
|
2024-10-31 17:02:06 +01:00
|
|
|
SupportedMediaTypes.Clear();
|
|
|
|
|
SupportedMediaTypes.Add(MediaTypeNames.Text.Css);
|
2020-06-06 16:51:21 -06:00
|
|
|
}
|
2020-06-06 16:52:23 -06:00
|
|
|
}
|