diff OrthancServer/Sources/OrthancRestApi/OrthancRestApi.h @ 4378:9e2fc6911ac8 varian

adding option to disable orthance explorer when http server is enabled
author Andrew Wallis <andrew.wallis@varian.com>>
date Fri, 11 Dec 2020 14:57:31 -0500
parents a01b1c9cbef4
children cd96c807ca3d
line wrap: on
line diff
--- a/OrthancServer/Sources/OrthancRestApi/OrthancRestApi.h	Thu Dec 17 11:27:37 2020 +0100
+++ b/OrthancServer/Sources/OrthancRestApi/OrthancRestApi.h	Fri Dec 11 14:57:31 2020 -0500
@@ -58,7 +58,7 @@
     bool                            resetRequestReceived_;
     MetricsRegistry::SharedMetrics  activeRequests_;
 
-    void RegisterSystem();
+    void RegisterSystem(bool orthancExplorerEnabled);
 
     void RegisterChanges();
 
@@ -75,7 +75,8 @@
     static void ShutdownOrthanc(RestApiPostCall& call);
 
   public:
-    explicit OrthancRestApi(ServerContext& context);
+    explicit OrthancRestApi(ServerContext& context,
+                            bool orthancExplorerEnabled);
 
     virtual bool Handle(HttpOutput& output,
                         RequestOrigin origin,