mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-10-23 17:22:51 +00:00
Add missing ProducesResponseType(401) to InitiateQuickConnect
The InitiateQuickConnect endpoint returns HTTP 401 Unauthorized when Quick Connect is disabled, and this was already documented in the XML response comment, but the corresponding [ProducesResponseType] attribute was missing, causing the OpenAPI/Swagger spec to omit it. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
b6f4ffd251
commit
44f7d2b854
1 changed files with 1 additions and 0 deletions
|
|
@ -52,6 +52,7 @@ public class QuickConnectController : BaseJellyfinApiController
|
|||
/// <returns>A <see cref="QuickConnectResult"/> with a secret and code for future use or an error message.</returns>
|
||||
[HttpPost("Initiate")]
|
||||
[ProducesResponseType(StatusCodes.Status200OK)]
|
||||
[ProducesResponseType(StatusCodes.Status401Unauthorized)]
|
||||
public async Task<ActionResult<QuickConnectResult>> InitiateQuickConnect()
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue