diff options
| author | crobibero <cody@robibe.ro> | 2020-04-21 08:38:31 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-04-21 08:38:31 -0600 |
| commit | 14361c68cf71bc810d282901a764d2f8d5858eea (patch) | |
| tree | c20e7b0e46fcbbc879290d11713c8f325a4ae162 /Jellyfin.Api/BaseJellyfinApiController.cs | |
| parent | 1175ce3f97fdebc6fdb489ce65deaac59c7b7f87 (diff) | |
Add ProducesResponseType to base controller
Diffstat (limited to 'Jellyfin.Api/BaseJellyfinApiController.cs')
| -rw-r--r-- | Jellyfin.Api/BaseJellyfinApiController.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Jellyfin.Api/BaseJellyfinApiController.cs b/Jellyfin.Api/BaseJellyfinApiController.cs index 1f4508e6c..f69175986 100644 --- a/Jellyfin.Api/BaseJellyfinApiController.cs +++ b/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 { } |
