aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrobibero <cody@robibe.ro>2020-04-21 13:57:11 -0600
committercrobibero <cody@robibe.ro>2020-05-19 08:55:15 -0600
commit15e9fbb923b8aa91692cd9c8c68ec7dde638c1e2 (patch)
tree21e2c0fedae70d861f70199ccc31a60991017960
parent84fcb4926ccce968a920bed7324ef6f037c4f5e1 (diff)
move to ActionResult<T>
-rw-r--r--Jellyfin.Api/Controllers/AttachmentsController.cs5
1 files changed, 2 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/AttachmentsController.cs b/Jellyfin.Api/Controllers/AttachmentsController.cs
index aeeaf5cbd..351401de1 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)