diff options
| author | Bond-009 <bond.009@outlook.com> | 2020-09-11 09:10:16 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-09-11 09:10:16 +0000 |
| commit | 1d633aac0a9c9b28c216dafe5b0180922f190cc6 (patch) | |
| tree | e0af0ac17b9455f9a42a26f591e6911a6776ab19 /Jellyfin.Api/Controllers/AudioController.cs | |
| parent | 50877761f646effbe505de74b317ba52af3e4424 (diff) | |
| parent | 63ebae2f9eb015b1b7a834417c2958c81e82bbf8 (diff) | |
Merge pull request #4093 from crobibero/bad-route
Fix api routes
Diffstat (limited to 'Jellyfin.Api/Controllers/AudioController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/AudioController.cs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/AudioController.cs b/Jellyfin.Api/Controllers/AudioController.cs index 4efd45031..d4c6e4af9 100644 --- a/Jellyfin.Api/Controllers/AudioController.cs +++ b/Jellyfin.Api/Controllers/AudioController.cs @@ -85,15 +85,15 @@ namespace Jellyfin.Api.Controllers /// <param name="streamOptions">Optional. The streaming options.</param> /// <response code="200">Audio stream returned.</response> /// <returns>A <see cref="FileResult"/> containing the audio file.</returns> - [HttpGet("{itemId}/stream.{container}", Name = "GetAudioStreamByContainer")] + [HttpGet("{itemId}/stream.{container:required}", Name = "GetAudioStreamByContainer")] [HttpGet("{itemId}/stream", Name = "GetAudioStream")] - [HttpHead("{itemId}/stream.{container}", Name = "HeadAudioStreamByContainer")] + [HttpHead("{itemId}/stream.{container:required}", Name = "HeadAudioStreamByContainer")] [HttpHead("{itemId}/stream", Name = "HeadAudioStream")] [ProducesResponseType(StatusCodes.Status200OK)] [ProducesAudioFile] public async Task<ActionResult> GetAudioStream( [FromRoute, Required] Guid itemId, - [FromRoute, Required] string? container, + [FromRoute] string? container, [FromQuery] bool? @static, [FromQuery] string? @params, [FromQuery] string? tag, |
