Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestApi.cpp @ 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 | 79ef2b6d8e76 |
children | 80fd140b12ba |
comparison
equal
deleted
inserted
replaced
4376:b002f9abe802 | 4378:9e2fc6911ac8 |
---|---|
203 | 203 |
204 | 204 |
205 | 205 |
206 // Registration of the various REST handlers -------------------------------- | 206 // Registration of the various REST handlers -------------------------------- |
207 | 207 |
208 OrthancRestApi::OrthancRestApi(ServerContext& context) : | 208 OrthancRestApi::OrthancRestApi(ServerContext& context, |
209 bool orthancExplorerEnabled) : | |
209 context_(context), | 210 context_(context), |
210 leaveBarrier_(false), | 211 leaveBarrier_(false), |
211 resetRequestReceived_(false), | 212 resetRequestReceived_(false), |
212 activeRequests_(context.GetMetricsRegistry(), | 213 activeRequests_(context.GetMetricsRegistry(), |
213 "orthanc_rest_api_active_requests", | 214 "orthanc_rest_api_active_requests", |
214 MetricsType_MaxOver10Seconds) | 215 MetricsType_MaxOver10Seconds) |
215 { | 216 { |
216 RegisterSystem(); | 217 RegisterSystem(orthancExplorerEnabled); |
217 | 218 |
218 RegisterChanges(); | 219 RegisterChanges(); |
219 RegisterResources(); | 220 RegisterResources(); |
220 RegisterModalities(); | 221 RegisterModalities(); |
221 RegisterAnonymizeModify(); | 222 RegisterAnonymizeModify(); |