comparison OrthancServer/Plugins/Samples/ConnectivityChecks/Plugin.cpp @ 5538:6ce05f8b5b13

deprecating OrthancPluginSetDescription2(), OrthancPluginExtendOrthancExplorer2() and OrthancPluginSetRootUri2()
author Sebastien Jodogne <s.jodogne@gmail.com>
date Sat, 16 Mar 2024 11:34:28 +0100
parents 48b8dae6dc77
children f7adfb22e20e
comparison
equal deleted inserted replaced
5537:a85e49dcb63e 5538:6ce05f8b5b13
84 OrthancPluginLogError(context_, info); 84 OrthancPluginLogError(context_, info);
85 return -1; 85 return -1;
86 } 86 }
87 87
88 /* Register the callbacks */ 88 /* Register the callbacks */
89 OrthancPluginSetDescription(context_, "Utilities to check connectivity to DICOM modalities, DICOMweb servers and Orthanc peers."); 89 OrthancPluginSetDescription2(context_, ORTHANC_PLUGIN_NAME, "Utilities to check connectivity to DICOM modalities, DICOMweb servers and Orthanc peers.");
90 OrthancPluginSetRootUri(context_, ROOT_URI "/app/index.html"); 90 OrthancPluginSetRootUri2(context_, ORTHANC_PLUGIN_NAME, ROOT_URI "/app/index.html");
91 OrthancPluginRegisterRestCallback(context_, ROOT_URI "/libs/(.*)", ServeStaticResource<Orthanc::EmbeddedResources::LIBRARIES>); 91 OrthancPluginRegisterRestCallback(context_, ROOT_URI "/libs/(.*)", ServeStaticResource<Orthanc::EmbeddedResources::LIBRARIES>);
92 OrthancPluginRegisterRestCallback(context_, ROOT_URI "/app/(.*)", ServeStaticResource<Orthanc::EmbeddedResources::WEB_RESOURCES>); 92 OrthancPluginRegisterRestCallback(context_, ROOT_URI "/app/(.*)", ServeStaticResource<Orthanc::EmbeddedResources::WEB_RESOURCES>);
93 93
94 return 0; 94 return 0;
95 } 95 }