Mercurial > hg > orthanc
comparison OrthancServer/main.cpp @ 228:1af3bc092db8
removal of the old rest api
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Fri, 30 Nov 2012 10:59:55 +0100 |
parents | 4eb0c7ce86c9 |
children | f2349bab5fe7 |
comparison
equal
deleted
inserted
replaced
227:209ca3f6db62 | 228:1af3bc092db8 |
---|---|
28 * You should have received a copy of the GNU General Public License | 28 * You should have received a copy of the GNU General Public License |
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" | |
34 #include "OrthancRestApi2.h" | 33 #include "OrthancRestApi2.h" |
35 | 34 |
36 #include <fstream> | 35 #include <fstream> |
37 #include <glog/logging.h> | 36 #include <glog/logging.h> |
38 #include <boost/algorithm/string/predicate.hpp> | 37 #include <boost/algorithm/string/predicate.hpp> |
250 #else | 249 #else |
251 httpServer.RegisterHandler(new FilesystemHttpHandler("/app", ORTHANC_PATH "/OrthancExplorer")); | 250 httpServer.RegisterHandler(new FilesystemHttpHandler("/app", ORTHANC_PATH "/OrthancExplorer")); |
252 #endif | 251 #endif |
253 | 252 |
254 httpServer.RegisterHandler(new OrthancRestApi2(context)); | 253 httpServer.RegisterHandler(new OrthancRestApi2(context)); |
255 httpServer.RegisterHandler(new OrthancRestApi(context.GetIndex(), storageDirectory.string())); | |
256 | 254 |
257 // GO !!! | 255 // GO !!! |
258 httpServer.Start(); | 256 httpServer.Start(); |
259 dicomServer.Start(); | 257 dicomServer.Start(); |
260 | 258 |