ZRColaWS: Simplify class and variable names

Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
Simon Rozman 2022-09-19 09:11:34 +02:00
parent f74e9930c1
commit 685ffedb53
2 changed files with 4 additions and 4 deletions

View File

@ -15,10 +15,10 @@
#include OATPP_CODEGEN_BEGIN(ApiController)
class MyController : public oatpp::web::server::api::ApiController
class Controller : public oatpp::web::server::api::ApiController
{
public:
MyController(OATPP_COMPONENT(std::shared_ptr<ObjectMapper>, objectMapper)) : oatpp::web::server::api::ApiController(objectMapper) {}
Controller(OATPP_COMPONENT(std::shared_ptr<ObjectMapper>, objectMapper)) : oatpp::web::server::api::ApiController(objectMapper) {}
ADD_CORS(getAbout)
ENDPOINT("GET", "/about", getAbout)

View File

@ -120,8 +120,8 @@ int main()
AppComponent components;
OATPP_COMPONENT(std::shared_ptr<oatpp::web::server::HttpRouter>, router);
auto myController = std::make_shared<MyController>();
router->addController(myController);
auto controller = std::make_shared<Controller>();
router->addController(controller);
OATPP_COMPONENT(std::shared_ptr<oatpp::network::ConnectionHandler>, connectionHandler);
OATPP_COMPONENT(std::shared_ptr<oatpp::network::ServerConnectionProvider>, connectionProvider);
oatpp::network::Server server(connectionProvider, connectionHandler);