The Free Software Media System - Server Backend & API
move to ActionResult<T>
crobibero466e20ea8cb8
diff --git a/Jellyfin.Api/Controllers/AttachmentsController.cs b/Jellyfin.Api/Controllers/AttachmentsController.csindex aeeaf5cbdc..351401de18 100644--- a/Jellyfin.Api/Controllers/AttachmentsController.cs+++ b/Jellyfin.Api/Controllers/AttachmentsController.cs@@ -44,10 +44,9 @@ namespace Jellyfin.Api.Controllers/// <returns>Attachment.</returns>[HttpGet("{VideoID}/{MediaSourceID}/Attachments/{Index}")][Produces("application/octet-stream")]- [ProducesResponseType(typeof(FileStreamResult), StatusCodes.Status200OK)]+ [ProducesResponseType(StatusCodes.Status200OK)][ProducesResponseType(StatusCodes.Status404NotFound)]- [ProducesResponseType(typeof(string), StatusCodes.Status500InternalServerError)]- public async Task<IActionResult> GetAttachment(+ public async Task<ActionResult<FileStreamResult>> GetAttachment([FromRoute] Guid videoId,[FromRoute] string mediaSourceId,[FromRoute] int index)