Open the Swagger API page on server start if not hosting the static web content

This commit is contained in:
Mark Monteiro
2020-02-25 17:01:57 +01:00
parent 26af5ea45a
commit 1b5999a1bc
4 changed files with 23 additions and 1 deletions

View File

@@ -36,7 +36,11 @@ namespace Emby.Server.Implementations.EntryPoints
return Task.CompletedTask;
}
if (!_config.Configuration.IsStartupWizardCompleted)
if (!_appHost.IsHostingContent)
{
BrowserLauncher.OpenSwaggerPage(_appHost);
}
else if (!_config.Configuration.IsStartupWizardCompleted)
{
BrowserLauncher.OpenWebApp(_appHost);
}