Browse Source

Add missing route

crobibero 5 năm trước cách đây
mục cha
commit
835bda7be3
1 tập tin đã thay đổi với 2 bổ sung0 xóa
  1. 2 0
      Jellyfin.Api/Controllers/LibraryController.cs

+ 2 - 0
Jellyfin.Api/Controllers/LibraryController.cs

@@ -281,6 +281,8 @@ namespace Jellyfin.Api.Controllers
         /// <response code="200">Theme songs and videos returned.</response>
         /// <response code="404">Item not found.</response>
         /// <returns>The item theme videos.</returns>
+        [HttpGet("/Items/{itemId}/ThemeMedia")]
+        [Authorize(Policy = Policies.DefaultAuthorization)]
         [ProducesResponseType(StatusCodes.Status200OK)]
         public ActionResult<AllThemeMediaResult> GetThemeMedia(
             [FromRoute] Guid itemId,