aboutsummaryrefslogtreecommitdiff
path: root/Jellyfin.Api/Controllers/LibraryController.cs
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2021-03-13 15:07:42 +0100
committerGitHub <noreply@github.com>2021-03-13 15:07:42 +0100
commit260b48ef9d5547581f0499152b52317babc5f86f (patch)
treef5e78b58fcfc10dd8758b5beeb0138f35abb8580 /Jellyfin.Api/Controllers/LibraryController.cs
parentb755c2521745d8abdeb3669d8cb02707ee64e0e9 (diff)
parentfe2a310fe28bb893a855d1278845ce6539c39656 (diff)
Merge pull request #5515 from jellyfin/fix-refresh-endpoint
fix refresh endpoint
Diffstat (limited to 'Jellyfin.Api/Controllers/LibraryController.cs')
-rw-r--r--Jellyfin.Api/Controllers/LibraryController.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Jellyfin.Api/Controllers/LibraryController.cs b/Jellyfin.Api/Controllers/LibraryController.cs
index 2bd2d4933..f8e8825ef 100644
--- a/Jellyfin.Api/Controllers/LibraryController.cs
+++ b/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()