diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-04-25 15:55:36 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-25 15:55:36 +0200 |
| commit | 3c366954ae123e37ea4c6e6b38b7cc0968f66071 (patch) | |
| tree | 668a12383f2b24fd89db7a290964818608fc4d62 | |
| parent | 01f49137fcb2c545f73d2d1295a7a7e0d8dc2000 (diff) | |
| parent | 2066b0f68f96a14d7b5a5e511ce9099c7a1cada7 (diff) | |
Merge pull request #2960 from ZadenRB/content-type-annotation
Adds annotation for content-type of ASP.NET Web API endpoints
| -rw-r--r-- | Jellyfin.Api/BaseJellyfinApiController.cs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Jellyfin.Api/BaseJellyfinApiController.cs b/Jellyfin.Api/BaseJellyfinApiController.cs index 1f4508e6c..a34f9eb62 100644 --- a/Jellyfin.Api/BaseJellyfinApiController.cs +++ b/Jellyfin.Api/BaseJellyfinApiController.cs @@ -1,3 +1,4 @@ +using System.Net.Mime; using Microsoft.AspNetCore.Mvc; namespace Jellyfin.Api @@ -7,6 +8,7 @@ namespace Jellyfin.Api /// </summary> [ApiController] [Route("[controller]")] + [Produces(MediaTypeNames.Application.Json)] public class BaseJellyfinApiController : ControllerBase { } |
