From 96ff767bd87aa0bcc1eb27cad6b51944430b69c4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Mon, 25 Aug 2025 19:49:45 +0300 Subject: [PATCH] =?UTF-8?q?=D0=A3=D0=BF=D0=B0=D0=BA=D0=BE=D0=B2=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=BA=D0=BE=D0=BD=D1=82=D1=80=D0=BE=D0=BB=D0=BB=D0=B5?= =?UTF-8?q?=D1=80=D0=BE=D0=B2=20=D0=B8=20Executor'=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/endpoints_handlers/RootExecutor.h | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) 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");