浏览代码

Merge pull request #2960 from ZadenRB/content-type-annotation

Adds annotation for content-type of ASP.NET Web API endpoints
Bond-009 5 年之前
父节点
当前提交
3c366954ae
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      Jellyfin.Api/BaseJellyfinApiController.cs

+ 2 - 0
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
     {
     }