Merge pull request #8360 from nielsvanvelzen/qc-operation-names
This commit is contained in:
commit
c7d236a348
|
@ -39,7 +39,7 @@ namespace Jellyfin.Api.Controllers
|
|||
/// <returns>Whether Quick Connect is enabled on the server or not.</returns>
|
||||
[HttpGet("Enabled")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
public ActionResult<bool> GetEnabled()
|
||||
public ActionResult<bool> GetQuickConnectEnabled()
|
||||
{
|
||||
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>
|
||||
[HttpGet("Initiate")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
public async Task<ActionResult<QuickConnectResult>> Initiate()
|
||||
public async Task<ActionResult<QuickConnectResult>> InitiateQuickConnect()
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -75,7 +75,7 @@ namespace Jellyfin.Api.Controllers
|
|||
[HttpGet("Connect")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status404NotFound)]
|
||||
public ActionResult<QuickConnectResult> Connect([FromQuery, Required] string secret)
|
||||
public ActionResult<QuickConnectResult> GetQuickConnectState([FromQuery, Required] string secret)
|
||||
{
|
||||
try
|
||||
{
|
||||
|
@ -102,7 +102,7 @@ namespace Jellyfin.Api.Controllers
|
|||
[Authorize(Policy = Policies.DefaultAuthorization)]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[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);
|
||||
if (!userId.HasValue)
|
||||
|
|
Loading…
Reference in New Issue
Block a user