File tree Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Expand file tree Collapse file tree 3 files changed +5
-6
lines changed Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ add_library(${project_name}-lib
17
17
18
18
## link libs
19
19
20
- find_package (oatpp 1.2.5 REQUIRED )
20
+ find_package (oatpp 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 @@ -14,8 +14,7 @@ void run() {
14
14
OATPP_COMPONENT (std::shared_ptr<oatpp::web::server::HttpRouter>, router);
15
15
16
16
/* Create MyController and add all of its endpoints to router */
17
- auto myController = std::make_shared<MyController>();
18
- myController->addEndpointsToRouter (router);
17
+ router->addController (std::make_shared<MyController>());
19
18
20
19
/* Get connection handler component */
21
20
OATPP_COMPONENT (std::shared_ptr<oatpp::network::ConnectionHandler>, connectionHandler);
You can’t perform that action at this time.
0 commit comments