Explorar o código

Adds produces annotation to the base controller to indicate application/json as the response type for endpoints

ZadenRB %!s(int64=5) %!d(string=hai) anos
pai
achega
eee02a355a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      Jellyfin.Api/BaseJellyfinApiController.cs

+ 1 - 0
Jellyfin.Api/BaseJellyfinApiController.cs

@@ -7,6 +7,7 @@ namespace Jellyfin.Api
     /// </summary>
     [ApiController]
     [Route("[controller]")]
+    [Produces("application/json")]
     public class BaseJellyfinApiController : ControllerBase
     {
     }