Mercurial > hg > orthanc
comparison 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 |
comparison
equal
deleted
inserted
replaced
4376:b002f9abe802 | 4378:9e2fc6911ac8 |
---|---|
56 ServerContext& context_; | 56 ServerContext& context_; |
57 bool leaveBarrier_; | 57 bool leaveBarrier_; |
58 bool resetRequestReceived_; | 58 bool resetRequestReceived_; |
59 MetricsRegistry::SharedMetrics activeRequests_; | 59 MetricsRegistry::SharedMetrics activeRequests_; |
60 | 60 |
61 void RegisterSystem(); | 61 void RegisterSystem(bool orthancExplorerEnabled); |
62 | 62 |
63 void RegisterChanges(); | 63 void RegisterChanges(); |
64 | 64 |
65 void RegisterResources(); | 65 void RegisterResources(); |
66 | 66 |
73 static void ResetOrthanc(RestApiPostCall& call); | 73 static void ResetOrthanc(RestApiPostCall& call); |
74 | 74 |
75 static void ShutdownOrthanc(RestApiPostCall& call); | 75 static void ShutdownOrthanc(RestApiPostCall& call); |
76 | 76 |
77 public: | 77 public: |
78 explicit OrthancRestApi(ServerContext& context); | 78 explicit OrthancRestApi(ServerContext& context, |
79 bool orthancExplorerEnabled); | |
79 | 80 |
80 virtual bool Handle(HttpOutput& output, | 81 virtual bool Handle(HttpOutput& output, |
81 RequestOrigin origin, | 82 RequestOrigin origin, |
82 const char* remoteIp, | 83 const char* remoteIp, |
83 const char* username, | 84 const char* username, |