ZRColaWS: Simplify class and variable names
Signed-off-by: Simon Rozman <simon@rozman.si>
This commit is contained in:
parent
f74e9930c1
commit
685ffedb53
@ -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)
|
||||
|
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user