mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-07-25 06:58:40 +02:00
Add missing FromRoute, Required attribute
This commit is contained in:
parent
69d453e900
commit
afc8a307c7
|
@ -447,7 +447,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
[HttpGet("Timers/{timerId}")]
|
[HttpGet("Timers/{timerId}")]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||||
[Authorize(Policy = Policies.DefaultAuthorization)]
|
[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);
|
return await _liveTvManager.GetTimer(timerId, CancellationToken.None).ConfigureAwait(false);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue