The Free Software Media System - Server Backend & API
Merge remote-tracking branch 'upstream/master' into api-migration
crobiberof915c3e5d9af
diff --cc Jellyfin.Api/Controllers/StartupController.csindex 252b5cdd10,93fb22c4eb..f9e4e61b5e--- a/Jellyfin.Api/Controllers/StartupController.cs+++ b/Jellyfin.Api/Controllers/StartupController.cs@@@ -45,15 -40,13 +45,15 @@@ namespace Jellyfin.Api.Controller}/// <summary>- /// Endpoint for getting the initial startup wizard configuration.+ /// Gets the initial startup wizard configuration./// </summary>- /// <returns>The initial startup wizard configuration.</returns>+ /// <response code="200">Initial startup wizard configuration retrieved.</response>+ /// <returns>An <see cref="OkResult"/> containing the initial startup wizard configuration.</returns>[HttpGet("Configuration")]- public StartupConfigurationDto GetStartupConfiguration()+ [ProducesResponseType(StatusCodes.Status200OK)]+ public ActionResult<StartupConfigurationDto> GetStartupConfiguration(){- var result = new StartupConfigurationDto+ return new StartupConfigurationDto{UICulture = _config.Configuration.UICulture,MetadataCountryCode = _config.Configuration.MetadataCountryCode,@@@ -103,17 -86,14 +101,17 @@@}/// <summary>- /// Endpoint for returning the first user.+ /// Gets the first user./// </summary>+ /// <response code="200">Initial user retrieved.</response>/// <returns>The first user.</returns>[HttpGet("User")]+ [HttpGet("FirstUser")]+ [ProducesResponseType(StatusCodes.Status200OK)]- public ActionResult<StartupUserDto> GetFirstUser()+ public async Task<StartupUserDto> GetFirstUser(){// TODO: Remove this method when startup wizard no longer requires an existing user.- _userManager.Initialize();+ await _userManager.InitializeAsync().ConfigureAwait(false);var user = _userManager.Users.First();return new StartupUserDto{