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) {