mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-09-06 11:34:57 +02:00
Add missing default authorization policy
This commit is contained in:
parent
b51b9653ac
commit
6b72fb8631
1 changed files with 2 additions and 2 deletions
|
@ -173,7 +173,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
/// <response code="200">Information retrieved.</response>
|
/// <response code="200">Information retrieved.</response>
|
||||||
/// <returns><see cref="EndPointInfo"/> with information about the endpoint.</returns>
|
/// <returns><see cref="EndPointInfo"/> with information about the endpoint.</returns>
|
||||||
[HttpGet("Endpoint")]
|
[HttpGet("Endpoint")]
|
||||||
[Authorize]
|
[Authorize(Policy = Policies.DefaultAuthorization)]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||||
public ActionResult<EndPointInfo> GetEndpointInfo()
|
public ActionResult<EndPointInfo> GetEndpointInfo()
|
||||||
{
|
{
|
||||||
|
@ -211,7 +211,7 @@ namespace Jellyfin.Api.Controllers
|
||||||
/// <response code="200">Information retrieved.</response>
|
/// <response code="200">Information retrieved.</response>
|
||||||
/// <returns>An <see cref="IEnumerable{WakeOnLanInfo}"/> with the WakeOnLan infos.</returns>
|
/// <returns>An <see cref="IEnumerable{WakeOnLanInfo}"/> with the WakeOnLan infos.</returns>
|
||||||
[HttpGet("WakeOnLanInfo")]
|
[HttpGet("WakeOnLanInfo")]
|
||||||
[Authorize]
|
[Authorize(Policy = Policies.DefaultAuthorization)]
|
||||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||||
public ActionResult<IEnumerable<WakeOnLanInfo>> GetWakeOnLanInfo()
|
public ActionResult<IEnumerable<WakeOnLanInfo>> GetWakeOnLanInfo()
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue