diff --git a/src/endpoints_handlers/RootExecutor.h b/src/endpoints_handlers/RootExecutor.h index 2d8b96d..8c590ab 100644 --- a/src/endpoints_handlers/RootExecutor.h +++ b/src/endpoints_handlers/RootExecutor.h @@ -14,27 +14,27 @@ class RootExecutor : public IExecutor using IRouteController = IController; using RouteController = Controller; using RoutesPathes = std::unordered_map>; + private: RoutesPathes routes_pathes_; + public: RootExecutor() { - typename RouteController::HTTPMethodsToExecutors authorization_registration_executors { - {boost::beast::http::verb::post, std::make_shared()} - }; - routes_pathes_["/api/v1/Auth/Register"] = std::make_unique( - std::move(authorization_registration_executors) - ); - + typename RouteController::HTTPMethodsToExecutors{ + {boost::beast::http::verb::post, std::make_shared()} + } + ); } + boost::beast::http::response operator ()( boost::beast::http::request>&& req ) override { boost::beast::http::response res{ - boost::beast::http::status::ok, req.version() - }; + boost::beast::http::status::ok, req.version() + }; res.body() = "{ \"detail\": \"ok\"}"; res.set(boost::beast::http::field::content_type, "application/json");