diff options
| author | crobibero <cody@robibe.ro> | 2020-09-05 17:07:25 -0600 |
|---|---|---|
| committer | crobibero <cody@robibe.ro> | 2020-09-05 17:07:25 -0600 |
| commit | 59d47ec3f52d8592f6a2aac405ee214cfda10081 (patch) | |
| tree | d9f85200566b2d0f7c310760f5c85fbe83b0ef78 /Jellyfin.Api/Controllers/AudioController.cs | |
| parent | 6d154041b9e456ab97e1066f525e4d9732fb672a (diff) | |
Make all FromRoute required
Diffstat (limited to 'Jellyfin.Api/Controllers/AudioController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/AudioController.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/AudioController.cs b/Jellyfin.Api/Controllers/AudioController.cs index 802cd026e..a81efe966 100644 --- a/Jellyfin.Api/Controllers/AudioController.cs +++ b/Jellyfin.Api/Controllers/AudioController.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using System.Threading.Tasks; using Jellyfin.Api.Helpers; using Jellyfin.Api.Models.StreamingDtos; @@ -89,8 +90,8 @@ namespace Jellyfin.Api.Controllers [HttpHead("{itemId}/stream", Name = "HeadAudioStream")] [ProducesResponseType(StatusCodes.Status200OK)] public async Task<ActionResult> GetAudioStream( - [FromRoute] Guid itemId, - [FromRoute] string? container, + [FromRoute][Required] Guid itemId, + [FromRoute][Required] string? container, [FromQuery] bool? @static, [FromQuery] string? @params, [FromQuery] string? tag, |
