aboutsummaryrefslogtreecommitdiff
path: root/Emby.Server.Implementations/Browser/BrowserLauncher.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Emby.Server.Implementations/Browser/BrowserLauncher.cs')
-rw-r--r--Emby.Server.Implementations/Browser/BrowserLauncher.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/Emby.Server.Implementations/Browser/BrowserLauncher.cs b/Emby.Server.Implementations/Browser/BrowserLauncher.cs
index f5da0d018..b17c2b270 100644
--- a/Emby.Server.Implementations/Browser/BrowserLauncher.cs
+++ b/Emby.Server.Implementations/Browser/BrowserLauncher.cs
@@ -30,6 +30,16 @@ namespace Emby.Server.Implementations.Browser
}
/// <summary>
+ /// Opens the swagger API page.
+ /// </summary>
+ /// <param name="appHost">The app host.</param>
+ public static void OpenSwaggerPage(IServerApplicationHost appHost)
+ {
+ var url = appHost.GetLocalApiUrl("localhost") + "/swagger/index.html";
+ OpenUrl(appHost, url);
+ }
+
+ /// <summary>
/// Opens the URL.
/// </summary>
/// <param name="appHost">The application host instance.</param>