浏览代码

Add ProducesResponseType to base controller

crobibero 5 年之前
父节点
当前提交
14361c68cf
共有 1 个文件被更改,包括 3 次插入0 次删除
  1. 3 0
      Jellyfin.Api/BaseJellyfinApiController.cs

+ 3 - 0
Jellyfin.Api/BaseJellyfinApiController.cs

@@ -1,3 +1,5 @@
+using Jellyfin.Api.Models.ExceptionDtos;
+using Microsoft.AspNetCore.Http;
 using Microsoft.AspNetCore.Mvc;
 
 namespace Jellyfin.Api
@@ -7,6 +9,7 @@ namespace Jellyfin.Api
     /// </summary>
     [ApiController]
     [Route("[controller]")]
+    [ProducesResponseType(typeof(ExceptionDto), StatusCodes.Status500InternalServerError)]
     public class BaseJellyfinApiController : ControllerBase
     {
     }