File tree Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Expand file tree Collapse file tree 3 files changed +7
-10
lines changed Original file line number Diff line number Diff line change @@ -18,8 +18,8 @@ target_include_directories(${project_name}-lib PUBLIC src)
1818
1919## link libs
2020
21- find_package (oatpp 1.2.5 REQUIRED)
22- find_package (oatpp-libressl 1.2.5 REQUIRED)
21+ find_package (oatpp 1.3.0 REQUIRED)
22+ find_package (oatpp-libressl 1.3.0 REQUIRED)
2323
2424include (FindPkgConfig) # <-- include pkg-config needed by FindLibreSSL.cmake script
2525list (APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR} /cmake" ) # <-- use FindLibreSSL.cmake in /cmake folder
Original file line number Diff line number Diff line change 44# https://aka.ms/yaml
55
66jobs :
7- - job : ubuntu_16_04
8- displayName : ' Build - Ubuntu 16 .04'
7+ - job : ubuntu_20_04
8+ displayName : ' Build - Ubuntu 20 .04'
99 continueOnError : false
1010 pool :
11- vmImage : ' Ubuntu 16 .04'
11+ vmImage : ' ubuntu-20 .04'
1212 container :
1313 image : lganzzzo/ubuntu-cmake:latest
1414 workspace :
Original file line number Diff line number Diff line change @@ -28,14 +28,11 @@ void run() {
2828 AppComponent components; // Create scope Environment components
2929
3030 /* create ApiControllers and add endpoints to router */
31-
3231 auto router = components.httpRouter .getObject ();
33-
34- auto myController = MyController::createShared ();
35- myController->addEndpointsToRouter (router);
32+
33+ router->addController (MyController::createShared ());
3634
3735 /* create server */
38-
3936 oatpp::network::Server server (components.serverConnectionProvider .getObject (),
4037 components.serverConnectionHandler .getObject ());
4138
You can’t perform that action at this time.
0 commit comments