Your ROOT_URL in app.ini is https://git.cloudchain.link/ but you are visiting https://dash.bss.nz/open-source-mirrors/jellyfin/commit/49e56c147ec3c1318e727a34ed916f2a4d4032d0?style=split&whitespace=ignore-all You should set ROOT_URL correctly, otherwise the web may not work correctly.

Fix QuickConnect operation names

pull/8360/head
Niels van Velzen 3 years ago
parent 176e182629
commit 49e56c147e

@ -39,7 +39,7 @@ namespace Jellyfin.Api.Controllers
/// <returns>Whether Quick Connect is enabled on the server or not.</returns> /// <returns>Whether Quick Connect is enabled on the server or not.</returns>
[HttpGet("Enabled")] [HttpGet("Enabled")]
[ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status200OK)]
public ActionResult<bool> GetEnabled() public ActionResult<bool> GetQuickConnectEnabled()
{ {
return _quickConnect.IsEnabled; return _quickConnect.IsEnabled;
} }
@ -52,7 +52,7 @@ namespace Jellyfin.Api.Controllers
/// <returns>A <see cref="QuickConnectResult"/> with a secret and code for future use or an error message.</returns> /// <returns>A <see cref="QuickConnectResult"/> with a secret and code for future use or an error message.</returns>
[HttpGet("Initiate")] [HttpGet("Initiate")]
[ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status200OK)]
public async Task<ActionResult<QuickConnectResult>> Initiate() public async Task<ActionResult<QuickConnectResult>> InitiateQuickConnect()
{ {
try try
{ {
@ -75,7 +75,7 @@ namespace Jellyfin.Api.Controllers
[HttpGet("Connect")] [HttpGet("Connect")]
[ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status404NotFound)] [ProducesResponseType(StatusCodes.Status404NotFound)]
public ActionResult<QuickConnectResult> Connect([FromQuery, Required] string secret) public ActionResult<QuickConnectResult> GetQuickConnectState([FromQuery, Required] string secret)
{ {
try try
{ {
@ -102,7 +102,7 @@ namespace Jellyfin.Api.Controllers
[Authorize(Policy = Policies.DefaultAuthorization)] [Authorize(Policy = Policies.DefaultAuthorization)]
[ProducesResponseType(StatusCodes.Status200OK)] [ProducesResponseType(StatusCodes.Status200OK)]
[ProducesResponseType(StatusCodes.Status403Forbidden)] [ProducesResponseType(StatusCodes.Status403Forbidden)]
public async Task<ActionResult<bool>> Authorize([FromQuery, Required] string code) public async Task<ActionResult<bool>> AuthorizeQuickConnect([FromQuery, Required] string code)
{ {
var userId = ClaimHelpers.GetUserId(Request.HttpContext.User); var userId = ClaimHelpers.GetUserId(Request.HttpContext.User);
if (!userId.HasValue) if (!userId.HasValue)

Loading…
Cancel
Save