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 c72fac8 commit 48ebcbe
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
4 changes: 2 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ target_include_directories(${project_name}-lib PUBLIC src)

## link libs

find_package(oatpp 1.2.5 REQUIRED)
find_package(oatpp-libressl 1.2.5 REQUIRED)
find_package(oatpp 1.3.0 REQUIRED)
find_package(oatpp-libressl 1.3.0 REQUIRED)

include(FindPkgConfig) # <-- include pkg-config needed by FindLibreSSL.cmake script
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") # <-- use FindLibreSSL.cmake in /cmake folder
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
7 changes: 2 additions & 5 deletions src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,11 @@ void run() {
AppComponent components; // Create scope Environment components

/* create ApiControllers and add endpoints to router */

auto router = components.httpRouter.getObject();

auto myController = MyController::createShared();
myController->addEndpointsToRouter(router);

router->addController(MyController::createShared());

/* create server */

oatpp::network::Server server(components.serverConnectionProvider.getObject(),
components.serverConnectionHandler.getObject());

Expand Down

0 comments on commit 48ebcbe

Please sign in to comment.