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/AlbumsController.cs | |
| parent | 6d154041b9e456ab97e1066f525e4d9732fb672a (diff) | |
Make all FromRoute required
Diffstat (limited to 'Jellyfin.Api/Controllers/AlbumsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/AlbumsController.cs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Jellyfin.Api/Controllers/AlbumsController.cs b/Jellyfin.Api/Controllers/AlbumsController.cs index 190d4bd07..9b68d056f 100644 --- a/Jellyfin.Api/Controllers/AlbumsController.cs +++ b/Jellyfin.Api/Controllers/AlbumsController.cs @@ -1,5 +1,6 @@ using System; using System.Collections.Generic; +using System.ComponentModel.DataAnnotations; using System.Linq; using Jellyfin.Api.Extensions; using Jellyfin.Api.Helpers; @@ -52,7 +53,7 @@ namespace Jellyfin.Api.Controllers [HttpGet("Albums/{albumId}/Similar")] [ProducesResponseType(StatusCodes.Status200OK)] public ActionResult<QueryResult<BaseItemDto>> GetSimilarAlbums( - [FromRoute] string albumId, + [FromRoute][Required] string albumId, [FromQuery] Guid? userId, [FromQuery] string? excludeArtistIds, [FromQuery] int? limit) @@ -84,7 +85,7 @@ namespace Jellyfin.Api.Controllers [HttpGet("Artists/{artistId}/Similar")] [ProducesResponseType(StatusCodes.Status200OK)] public ActionResult<QueryResult<BaseItemDto>> GetSimilarArtists( - [FromRoute] string artistId, + [FromRoute][Required] string artistId, [FromQuery] Guid? userId, [FromQuery] string? excludeArtistIds, [FromQuery] int? limit) |
