Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 897:bafc9d592632 plugins
REST callbacks are working
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Tue, 17 Jun 2014 17:43:39 +0200 |
parents | f57802f8b4dc |
children | bb0a51561016 |
comparison
equal
deleted
inserted
replaced
896:c4053ac5db04 | 897:bafc9d592632 |
---|---|
47 #include "ServerContext.h" | 47 #include "ServerContext.h" |
48 #include "OrthancFindRequestHandler.h" | 48 #include "OrthancFindRequestHandler.h" |
49 #include "OrthancMoveRequestHandler.h" | 49 #include "OrthancMoveRequestHandler.h" |
50 #include "ServerToolbox.h" | 50 #include "ServerToolbox.h" |
51 #include "../Plugins/Engine/PluginsManager.h" | 51 #include "../Plugins/Engine/PluginsManager.h" |
52 #include "../Plugins/Engine/PluginsHttpHandler.h" | |
52 | 53 |
53 using namespace Orthanc; | 54 using namespace Orthanc; |
54 | 55 |
55 | 56 |
56 | 57 |
429 else | 430 else |
430 { | 431 { |
431 httpServer.SetSslEnabled(false); | 432 httpServer.SetSslEnabled(false); |
432 } | 433 } |
433 | 434 |
435 httpServer.RegisterHandler(new PluginsHttpHandler(pluginsManager)); | |
436 | |
434 #if ORTHANC_STANDALONE == 1 | 437 #if ORTHANC_STANDALONE == 1 |
435 httpServer.RegisterHandler(new EmbeddedResourceHttpHandler("/app", EmbeddedResources::ORTHANC_EXPLORER)); | 438 httpServer.RegisterHandler(new EmbeddedResourceHttpHandler("/app", EmbeddedResources::ORTHANC_EXPLORER)); |
436 #else | 439 #else |
437 httpServer.RegisterHandler(new FilesystemHttpHandler("/app", ORTHANC_PATH "/OrthancExplorer")); | 440 httpServer.RegisterHandler(new FilesystemHttpHandler("/app", ORTHANC_PATH "/OrthancExplorer")); |
438 #endif | 441 #endif |