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)
18
18
19
19
## link libs
20
20
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 )
23
23
24
24
include (FindPkgConfig ) # <-- include pkg-config needed by FindLibreSSL.cmake script
25
25
list (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 4
4
# https://aka.ms/yaml
5
5
6
6
jobs :
7
- - job : ubuntu_16_04
8
- displayName : ' Build - Ubuntu 16 .04'
7
+ - job : ubuntu_20_04
8
+ displayName : ' Build - Ubuntu 20 .04'
9
9
continueOnError : false
10
10
pool :
11
- vmImage : ' Ubuntu 16 .04'
11
+ vmImage : ' ubuntu-20 .04'
12
12
container :
13
13
image : lganzzzo/ubuntu-cmake:latest
14
14
workspace :
Original file line number Diff line number Diff line change @@ -28,14 +28,11 @@ void run() {
28
28
AppComponent components; // Create scope Environment components
29
29
30
30
/* create ApiControllers and add endpoints to router */
31
-
32
31
auto router = components.httpRouter .getObject ();
33
-
34
- auto myController = MyController::createShared ();
35
- myController->addEndpointsToRouter (router);
32
+
33
+ router->addController (MyController::createShared ());
36
34
37
35
/* create server */
38
-
39
36
oatpp::network::Server server (components.serverConnectionProvider .getObject (),
40
37
components.serverConnectionHandler .getObject ());
41
38
You can’t perform that action at this time.
0 commit comments