File tree 3 files changed +8
-13
lines changed
3 files changed +8
-13
lines changed Original file line number Diff line number Diff line change @@ -16,8 +16,8 @@ add_library(${project_name}-lib
16
16
17
17
## link libs
18
18
19
- find_package (oatpp 1.2.5 REQUIRED)
20
- find_package (oatpp-consul 1.2.5 REQUIRED)
19
+ find_package (oatpp 1.3.0 REQUIRED)
20
+ find_package (oatpp-consul 1.3.0 REQUIRED)
21
21
22
22
target_link_libraries (${project_name} -lib
23
23
PUBLIC oatpp::oatpp
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 @@ -18,17 +18,12 @@ void run() {
18
18
AppComponent components; // Create scope Environment components
19
19
20
20
/* create ApiControllers and add endpoints to router */
21
-
22
21
auto router = components.httpRouter .getObject ();
23
-
24
- auto DemoController = DemoController::createShared ();
25
- DemoController->addEndpointsToRouter (router);
26
-
27
- auto healthController = HealthController::createShared ();
28
- healthController->addEndpointsToRouter (router);
22
+
23
+ router->addController (DemoController::createShared ());
24
+ router->addController (HealthController::createShared ());
29
25
30
26
/* create server */
31
-
32
27
oatpp::network::Server server (components.serverConnectionProvider .getObject (),
33
28
components.serverConnectionHandler .getObject ());
34
29
You can’t perform that action at this time.
0 commit comments