diff StoneWebViewer/Plugin/Plugin.cpp @ 1526:61023b0d39c8

Reverted the Stone Web Viewer plugin to rev. 307a805d0587 (mistakenly changed to serve the RT Viewer and make it available in the Orthanc Explorer while it should have been done in a separate plugin)
author Benjamin Golinvaux <bgo@osimis.io>
date Sun, 02 Aug 2020 13:53:48 +0200
parents 22d1bd085c19
children 3eca4f9c2827
line wrap: on
line diff
--- a/StoneWebViewer/Plugin/Plugin.cpp	Sat Aug 01 14:42:31 2020 +0200
+++ b/StoneWebViewer/Plugin/Plugin.cpp	Sun Aug 02 13:53:48 2020 +0200
@@ -191,8 +191,6 @@
         explorer, Orthanc::EmbeddedResources::ORTHANC_EXPLORER);
       OrthancPluginExtendOrthancExplorer(OrthancPlugins::GetGlobalContext(), explorer.c_str());
       
-      // Stone Web Viewer files
-      // ---------------------
       OrthancPlugins::RegisterRestCallback
         <ServeEmbeddedFile<Orthanc::EmbeddedResources::STONE_WEB_VIEWER_WASM> >
         ("/stone-webviewer/StoneWebViewer.wasm", true);
@@ -213,28 +211,6 @@
         <ServeEmbeddedFolder<Orthanc::EmbeddedResources::WEB_APPLICATION> >
         ("/stone-webviewer/(.*)", true);
 
-      // RtViewer files below.
-      // ---------------------
-      // we do not serve the whole directory at once (with ServeEmbeddedFolder)
-      // because it contains uppercase characters that are forbidden by the
-      // resource embedding system
-
-      OrthancPlugins::RegisterRestCallback
-        <ServeEmbeddedFile<Orthanc::EmbeddedResources::RT_VIEWER_WASM_JS> >
-        ("/stone-rtviewer/RtViewerWasm.js", true);
-
-      OrthancPlugins::RegisterRestCallback
-        <ServeEmbeddedFile<Orthanc::EmbeddedResources::RT_VIEWER_WASM> >
-        ("/stone-rtviewer/RtViewerWasm.wasm", true);
-
-      OrthancPlugins::RegisterRestCallback
-        <ServeEmbeddedFile<Orthanc::EmbeddedResources::RT_VIEWER_WASM_APP_JS> >
-        ("/stone-rtviewer/RtViewerWasmApp.js", true);
-
-      OrthancPlugins::RegisterRestCallback
-        <ServeEmbeddedFile<Orthanc::EmbeddedResources::RT_VIEWER_INDEX_HTML> >
-        ("/stone-rtviewer/index.html", true);
-
       OrthancPluginRegisterOnChangeCallback(context, OnChangeCallback);
     }
     catch (...)