Browse Source

Use builtin JSON Mime type constant

ZadenRB 5 years ago
parent
commit
2066b0f68f
1 changed files with 2 additions and 1 deletions
  1. 2 1
      Jellyfin.Api/BaseJellyfinApiController.cs

+ 2 - 1
Jellyfin.Api/BaseJellyfinApiController.cs

@@ -1,3 +1,4 @@
+using System.Net.Mime;
 using Microsoft.AspNetCore.Mvc;
 
 namespace Jellyfin.Api
@@ -7,7 +8,7 @@ namespace Jellyfin.Api
     /// </summary>
     [ApiController]
     [Route("[controller]")]
-    [Produces("application/json")]
+    [Produces(MediaTypeNames.Application.Json)]
     public class BaseJellyfinApiController : ControllerBase
     {
     }