Skip to content

Commit c607ba5

Browse files
committed
update to the latest oatpp API version.
1 parent c111d62 commit c607ba5

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ add_library(${project_name}-lib
1717

1818
## link libs
1919

20-
find_package(oatpp 1.2.5 REQUIRED)
20+
find_package(oatpp 1.3.0 REQUIRED)
2121

2222
target_link_libraries(${project_name}-lib
2323
PUBLIC oatpp::oatpp

azure-pipelines.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44
# https://aka.ms/yaml
55

66
jobs:
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:

src/App.cpp

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,7 @@ void run() {
1414
OATPP_COMPONENT(std::shared_ptr<oatpp::web::server::HttpRouter>, router);
1515

1616
/* 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>());
1918

2019
/* Get connection handler component */
2120
OATPP_COMPONENT(std::shared_ptr<oatpp::network::ConnectionHandler>, connectionHandler);

0 commit comments

Comments
 (0)