2
0
Эх сурвалжийг харах

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

Adds annotation for content-type of ASP.NET Web API endpoints
Bond-009 5 жил өмнө
parent
commit
3c366954ae

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