Specify image file return for GetItemImage2
This commit is contained in:
parent
ec2a5e4fb0
commit
a698dab66f
|
@ -214,7 +214,7 @@ namespace Jellyfin.Api.Controllers
|
|||
{
|
||||
return Redirect("index.html?start=wizard#!/wizardstart.html");
|
||||
}
|
||||
|
||||
|
||||
return PhysicalFile(_resourceFileManager.GetResourcePath(basePath, path), MimeTypes.GetMimeType(path));
|
||||
}
|
||||
|
||||
|
|
|
@ -431,6 +431,7 @@ namespace Jellyfin.Api.Controllers
|
|||
[HttpHead("Items/{itemId}/Images/{imageType}/{imageIndex}/{tag}/{format}/{maxWidth}/{maxHeight}/{percentPlayed}/{unplayedCount}", Name = "HeadItemImage2")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
[ProducesImageFile]
|
||||
public async Task<ActionResult> GetItemImage2(
|
||||
[FromRoute] Guid itemId,
|
||||
[FromRoute] ImageType imageType,
|
||||
|
|
Loading…
Reference in New Issue
Block a user