comparison 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
comparison
equal deleted inserted replaced
209:9960642f0f45 210:96b7918a6a18
29 * along with this program. If not, see <http://www.gnu.org/licenses/>. 29 * along with this program. If not, see <http://www.gnu.org/licenses/>.
30 **/ 30 **/
31 31
32 32
33 #include "OrthancRestApi.h" 33 #include "OrthancRestApi.h"
34 #include "OrthancRestApi2.h"
34 35
35 #include <fstream> 36 #include <fstream>
36 #include <glog/logging.h> 37 #include <glog/logging.h>
37 #include <boost/algorithm/string/predicate.hpp> 38 #include <boost/algorithm/string/predicate.hpp>
38 39
256 httpServer.RegisterHandler(new EmbeddedResourceHttpHandler("/app", EmbeddedResources::ORTHANC_EXPLORER)); 257 httpServer.RegisterHandler(new EmbeddedResourceHttpHandler("/app", EmbeddedResources::ORTHANC_EXPLORER));
257 #else 258 #else
258 httpServer.RegisterHandler(new FilesystemHttpHandler("/app", ORTHANC_PATH "/OrthancExplorer")); 259 httpServer.RegisterHandler(new FilesystemHttpHandler("/app", ORTHANC_PATH "/OrthancExplorer"));
259 #endif 260 #endif
260 261
262 httpServer.RegisterHandler(new OrthancRestApi2(index, storageDirectory.string()));
261 httpServer.RegisterHandler(new OrthancRestApi(index, storageDirectory.string())); 263 httpServer.RegisterHandler(new OrthancRestApi(index, storageDirectory.string()));
262 264
263 // GO !!! 265 // GO !!!
264 httpServer.Start(); 266 httpServer.Start();
265 dicomServer.Start(); 267 dicomServer.Start();