mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-07 11:57:55 +02:00
add back optional for route param
This commit is contained in:
parent
6d3e15dc31
commit
af2186ab83
1 changed files with 3 additions and 3 deletions
|
@ -504,8 +504,8 @@ namespace Jellyfin.Api.Controllers
|
||||||
/// A <see cref="FileStreamResult"/> containing the file stream on success,
|
/// A <see cref="FileStreamResult"/> containing the file stream on success,
|
||||||
/// or a <see cref="NotFoundResult"/> if item not found.
|
/// or a <see cref="NotFoundResult"/> if item not found.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
[HttpGet("Artists/{name}/Images/{imageType}/{imageIndex}")]
|
[HttpGet("Artists/{name}/Images/{imageType}/{imageIndex?}")]
|
||||||
[HttpHead("Artists/{name}/Images/{imageType}/{imageIndex}", Name = "HeadArtistImage")]
|
[HttpHead("Artists/{name}/Images/{imageType}/{imageIndex?}", Name = "HeadArtistImage")]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||||
public async Task<ActionResult> GetArtistImage(
|
public async Task<ActionResult> GetArtistImage(
|
||||||
|
@ -582,7 +582,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
/// A <see cref="FileStreamResult"/> containing the file stream on success,
|
/// A <see cref="FileStreamResult"/> containing the file stream on success,
|
||||||
/// or a <see cref="NotFoundResult"/> if item not found.
|
/// or a <see cref="NotFoundResult"/> if item not found.
|
||||||
/// </returns>
|
/// </returns>
|
||||||
[HttpGet("Genres/{name}/Images/{imageType}/{imageIndex}")]
|
[HttpGet("Genres/{name}/Images/{imageType}/{imageIndex?}")]
|
||||||
[HttpHead("Genres/{name}/Images/{imageType}/{imageIndex?}", Name = "HeadGenreImage")]
|
[HttpHead("Genres/{name}/Images/{imageType}/{imageIndex?}", Name = "HeadGenreImage")]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||||
|
|
Loading…
Reference in a new issue