The Free Software Media System - Server Backend & API
Add missing FromRoute, Required attribute
crobiberoafc8a307c78b
diff --git a/Jellyfin.Api/Controllers/LiveTvController.cs b/Jellyfin.Api/Controllers/LiveTvController.csindex 8678844d23..500907a9aa 100644--- a/Jellyfin.Api/Controllers/LiveTvController.cs+++ b/Jellyfin.Api/Controllers/LiveTvController.cs@@ -447,7 +447,7 @@ namespace Jellyfin.Api.Controllers[HttpGet("Timers/{timerId}")][ProducesResponseType(StatusCodes.Status200OK)][Authorize(Policy = Policies.DefaultAuthorization)]- public async Task<ActionResult<TimerInfoDto>> GetTimer(string timerId)+ public async Task<ActionResult<TimerInfoDto>> GetTimer([FromRoute, Required] string timerId){return await _liveTvManager.GetTimer(timerId, CancellationToken.None).ConfigureAwait(false);}