浏览代码

Merge pull request #5515 from jellyfin/fix-refresh-endpoint

fix refresh endpoint
Bond-009 4 年之前
父节点
当前提交
260b48ef9d
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      Jellyfin.Api/Controllers/LibraryController.cs

+ 1 - 1
Jellyfin.Api/Controllers/LibraryController.cs

@@ -303,7 +303,7 @@ namespace Jellyfin.Api.Controllers
         /// </summary>
         /// <response code="204">Library scan started.</response>
         /// <returns>A <see cref="NoContentResult"/>.</returns>
-        [HttpGet("Library/Refresh")]
+        [HttpPost("Library/Refresh")]
         [Authorize(Policy = Policies.RequiresElevation)]
         [ProducesResponseType(StatusCodes.Status204NoContent)]
         public async Task<ActionResult> RefreshLibrary()