fix refresh endpoint

It was originally a POST 9af6eda0b4/MediaBrowser.Api/Library/LibraryService.cs (L155)
This commit is contained in:
Claus Vium 2021-03-13 09:13:45 +01:00 committed by GitHub
parent 80846a1c66
commit fe2a310fe2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()