comparison OrthancFramework/Resources/Samples/MicroService/Sample.cpp @ 4049:47e9e788224c framework

removing occurrences of ORTHANC_ROOT
author Sebastien Jodogne <s.jodogne@gmail.com>
date Thu, 11 Jun 2020 10:05:26 +0200
parents d25f4c0fa160
children 50cb0fb99e34
comparison
equal deleted inserted replaced
4048:64919a9958bb 4049:47e9e788224c
1 #include <stdio.h> 1 #include <stdio.h>
2 2
3 #include <HttpServer/MongooseServer.h> 3 #include "../../../Sources/HttpServer/HttpServer.h"
4 #include <Logging.h> 4 #include "../../../Sources/Logging.h"
5 #include <RestApi/RestApi.h> 5 #include "../../../Sources/RestApi/RestApi.h"
6 #include <SystemToolbox.h> 6 #include "../../../Sources/SystemToolbox.h"
7 7
8 class MicroService : public Orthanc::RestApi 8 class MicroService : public Orthanc::RestApi
9 { 9 {
10 private: 10 private:
11 static MicroService& GetSelf(Orthanc::RestApiCall& call) 11 static MicroService& GetSelf(Orthanc::RestApiCall& call)
41 Orthanc::Logging::EnableTraceLevel(true); 41 Orthanc::Logging::EnableTraceLevel(true);
42 42
43 MicroService rest; 43 MicroService rest;
44 44
45 { 45 {
46 Orthanc::MongooseServer httpServer; 46 Orthanc::HttpServer httpServer;
47 httpServer.SetPortNumber(8000); 47 httpServer.SetPortNumber(8000);
48 httpServer.Register(rest); 48 httpServer.Register(rest);
49 httpServer.SetRemoteAccessAllowed(true); 49 httpServer.SetRemoteAccessAllowed(true);
50 httpServer.Start(); 50 httpServer.Start();
51 51