From 7321240e59d198cb5ad7e92bd50f01683c561608 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=D0=90=D0=BD=D1=82=D0=BE=D0=BD?= Date: Wed, 27 Aug 2025 12:02:49 +0300 Subject: [PATCH] =?UTF-8?q?=D1=84=D0=B8=D0=BA=D1=81=20=D0=BC=D0=B0=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D1=8C=D0=BA=D0=B8=D1=85=20=D0=BE=D1=88=D0=B8=D0=B1?= =?UTF-8?q?=D0=BE=D0=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/endpoints_handlers/RootExecutor.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/endpoints_handlers/RootExecutor.h b/src/endpoints_handlers/RootExecutor.h index a69f4b2..895b912 100644 --- a/src/endpoints_handlers/RootExecutor.h +++ b/src/endpoints_handlers/RootExecutor.h @@ -28,7 +28,7 @@ public: { routes_pathes_["/api/v1/Auth/Register"] = std::make_unique( typename RouteController::HTTPMethodsToExecutors{ - {boost::beast::http::verb::post, std::make_shared()} + {boost::beast::http::verb::get, std::make_shared()} } ); } @@ -40,7 +40,7 @@ public: ) { const std::string& route = req.target(); - const bool is_match_route = !routes_pathes_.count(route); + const bool is_match_route = routes_pathes_.count(route); if (is_match_route) {