diff options
| author | crobibero <cody@robibe.ro> | 2020-09-01 17:26:49 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-09-01 17:26:49 -0600 |
| commit | 2f33bee2a94f7175050f83d568f8bd65a01a86f8 (patch) | |
| tree | 69ca62c6fa2291de284a28da59c35b6f2baa45ac /Jellyfin.Api/Attributes/ProducesPlaylistFileAttribute.cs | |
| parent | 2d198292a3ff1a5d213c9dd4643eee6ddef2661e (diff) | |
Set openapi schema type to file where possible
Diffstat (limited to 'Jellyfin.Api/Attributes/ProducesPlaylistFileAttribute.cs')
| -rw-r--r-- | Jellyfin.Api/Attributes/ProducesPlaylistFileAttribute.cs | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/Jellyfin.Api/Attributes/ProducesPlaylistFileAttribute.cs b/Jellyfin.Api/Attributes/ProducesPlaylistFileAttribute.cs new file mode 100644 index 000000000..5d928ab91 --- /dev/null +++ b/Jellyfin.Api/Attributes/ProducesPlaylistFileAttribute.cs @@ -0,0 +1,18 @@ +namespace Jellyfin.Api.Attributes +{ + /// <summary> + /// Produces file attribute of "image/*". + /// </summary> + public class ProducesPlaylistFileAttribute : ProducesFileAttribute + { + private const string ContentType = "application/x-mpegURL"; + + /// <summary> + /// Initializes a new instance of the <see cref="ProducesPlaylistFileAttribute"/> class. + /// </summary> + public ProducesPlaylistFileAttribute() + : base(ContentType) + { + } + } +} |
