Skip to content

Commit 48ebcbe

Browse files
committed
update to the latest oatpp API version.
1 parent c72fac8 commit 48ebcbe

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ target_include_directories(${project_name}-lib PUBLIC src)
1818

1919
## link libs
2020

21-
find_package(oatpp 1.2.5 REQUIRED)
22-
find_package(oatpp-libressl 1.2.5 REQUIRED)
21+
find_package(oatpp 1.3.0 REQUIRED)
22+
find_package(oatpp-libressl 1.3.0 REQUIRED)
2323

2424
include(FindPkgConfig) # <-- include pkg-config needed by FindLibreSSL.cmake script
2525
list(APPEND CMAKE_MODULE_PATH "${CMAKE_CURRENT_LIST_DIR}/cmake") # <-- use FindLibreSSL.cmake in /cmake folder

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: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,11 @@ void run() {
2828
AppComponent components; // Create scope Environment components
2929

3030
/* create ApiControllers and add endpoints to router */
31-
3231
auto router = components.httpRouter.getObject();
33-
34-
auto myController = MyController::createShared();
35-
myController->addEndpointsToRouter(router);
32+
33+
router->addController(MyController::createShared());
3634

3735
/* create server */
38-
3936
oatpp::network::Server server(components.serverConnectionProvider.getObject(),
4037
components.serverConnectionHandler.getObject());
4138

0 commit comments

Comments
 (0)