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 9a54656 commit b972426
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,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
9 changes: 3 additions & 6 deletions src/App.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,14 +17,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 b972426

Please sign in to comment.