Mercurial > hg > orthanc
comparison OrthancServer/Sources/OrthancRestApi/OrthancRestSystem.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 | d7a50b7b8466 |
children | 85b5b0e1bac9 |
comparison
equal
deleted
inserted
replaced
4376:b002f9abe802 | 4378:9e2fc6911ac8 |
---|---|
554 << EnumerationToString(verbosity) << "\""; | 554 << EnumerationToString(verbosity) << "\""; |
555 call.GetOutput().AnswerBuffer("", MimeType_PlainText); | 555 call.GetOutput().AnswerBuffer("", MimeType_PlainText); |
556 } | 556 } |
557 | 557 |
558 | 558 |
559 void OrthancRestApi::RegisterSystem() | 559 void OrthancRestApi::RegisterSystem(bool orthancExplorerEnabled) |
560 { | 560 { |
561 Register("/", ServeRoot); | 561 if (orthancExplorerEnabled) |
562 { | |
563 Register("/", ServeRoot); | |
564 } | |
562 Register("/system", GetSystemInformation); | 565 Register("/system", GetSystemInformation); |
563 Register("/statistics", GetStatistics); | 566 Register("/statistics", GetStatistics); |
564 Register("/tools/generate-uid", GenerateUid); | 567 Register("/tools/generate-uid", GenerateUid); |
565 Register("/tools/execute-script", ExecuteScript); | 568 Register("/tools/execute-script", ExecuteScript); |
566 Register("/tools/now", GetNowIsoString<true>); | 569 Register("/tools/now", GetNowIsoString<true>); |