From 068725cdedecc88bcde9f18c68b9b1e5c0f6e569 Mon Sep 17 00:00:00 2001 From: crobibero Date: Mon, 6 Jul 2020 08:02:23 -0600 Subject: [PATCH] Fix documentation and authorize attribute --- Jellyfin.Api/Controllers/ChannelsController.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Jellyfin.Api/Controllers/ChannelsController.cs b/Jellyfin.Api/Controllers/ChannelsController.cs index c3e29323e3..a293a78a02 100644 --- a/Jellyfin.Api/Controllers/ChannelsController.cs +++ b/Jellyfin.Api/Controllers/ChannelsController.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Linq; using System.Threading; using System.Threading.Tasks; +using Jellyfin.Api.Constants; using Jellyfin.Api.Extensions; using Jellyfin.Api.Helpers; using MediaBrowser.Controller.Channels; @@ -21,7 +22,7 @@ namespace Jellyfin.Api.Controllers /// /// Channels Controller. /// - [Authorize] + [Authorize(Policy = Policies.DefaultAuthorization)] public class ChannelsController : BaseJellyfinApiController { private readonly IChannelManager _channelManager; @@ -107,7 +108,10 @@ namespace Jellyfin.Api.Controllers /// Optional. Specify one or more sort orders, comma delimited. Options: Album, AlbumArtist, Artist, Budget, CommunityRating, CriticRating, DateCreated, DatePlayed, PlayCount, PremiereDate, ProductionYear, SortName, Random, Revenue, Runtime. /// Optional. Specify additional fields of information to return in the output. This allows multiple, comma delimited. Options: Budget, Chapters, DateCreated, Genres, HomePageUrl, IndexOptions, MediaStreams, Overview, ParentId, Path, People, ProviderIds, PrimaryImageAspectRatio, Revenue, SortName, Studios, Taglines. /// Channel items returned. - /// Channel items. + /// + /// A representing the request to get the channel items. + /// The task result contains an containing the channel items. + /// [HttpGet("{channelId}/Items")] public async Task>> GetChannelItems( [FromRoute] Guid channelId,