diff OrthancServer/main.cpp @ 210:96b7918a6a18

start of the refactoring of the Orthanc REST API
author Sebastien Jodogne <s.jodogne@gmail.com>
date Wed, 28 Nov 2012 18:03:44 +0100
parents bee20e978835
children 4eb0c7ce86c9
line wrap: on
line diff
--- a/OrthancServer/main.cpp	Wed Nov 28 17:22:07 2012 +0100
+++ b/OrthancServer/main.cpp	Wed Nov 28 18:03:44 2012 +0100
@@ -31,6 +31,7 @@
 
 
 #include "OrthancRestApi.h"
+#include "OrthancRestApi2.h"
 
 #include <fstream>
 #include <glog/logging.h>
@@ -258,6 +259,7 @@
       httpServer.RegisterHandler(new FilesystemHttpHandler("/app", ORTHANC_PATH "/OrthancExplorer"));
 #endif
 
+      httpServer.RegisterHandler(new OrthancRestApi2(index, storageDirectory.string()));
       httpServer.RegisterHandler(new OrthancRestApi(index, storageDirectory.string()));
 
       // GO !!!