Skip to content

Commit b972426

Browse files
committed
update to the latest oatpp API version.
1 parent 9a54656 commit b972426

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

CMakeLists.txt

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

1616
## link libs
1717

18-
find_package(oatpp 1.2.5 REQUIRED)
18+
find_package(oatpp 1.3.0 REQUIRED)
1919

2020
target_link_libraries(${project_name}-lib
2121
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: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,11 @@ void run() {
1717
AppComponent components; // Create scope Environment components
1818

1919
/* create ApiControllers and add endpoints to router */
20-
2120
auto router = components.httpRouter.getObject();
22-
23-
auto myController = MyController::createShared();
24-
myController->addEndpointsToRouter(router);
25-
21+
22+
router->addController(MyController::createShared());
23+
2624
/* create server */
27-
2825
oatpp::network::Server server(components.serverConnectionProvider.getObject(),
2926
components.serverConnectionHandler.getObject());
3027

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy