Skip to content

Commit

Permalink
update to the latest oatpp API version.
Browse files Browse the repository at this point in the history
  • Loading branch information
lganzzzo committed Oct 25, 2021
1 parent c111d62 commit c607ba5
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ add_library(${project_name}-lib

## link libs

find_package(oatpp 1.2.5 REQUIRED)
find_package(oatpp 1.3.0 REQUIRED)

target_link_libraries(${project_name}-lib
PUBLIC oatpp::oatpp
Expand Down
6 changes: 3 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@
# https://aka.ms/yaml

jobs:
- job: ubuntu_16_04
displayName: 'Build - Ubuntu 16.04'
- job: ubuntu_20_04
displayName: 'Build - Ubuntu 20.04'
continueOnError: false
pool:
vmImage: 'Ubuntu 16.04'
vmImage: 'ubuntu-20.04'
container:
image: lganzzzo/ubuntu-cmake:latest
workspace:
Expand Down
3 changes: 1 addition & 2 deletions src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,7 @@ void run() {
OATPP_COMPONENT(std::shared_ptr<oatpp::web::server::HttpRouter>, router);

/* Create MyController and add all of its endpoints to router */
auto myController = std::make_shared<MyController>();
myController->addEndpointsToRouter(router);
router->addController(std::make_shared<MyController>());

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

0 comments on commit c607ba5

Please sign in to comment.