Рабочая сборка второго executor'а

This commit is contained in:
Антон
2025-09-21 10:43:54 +03:00
parent 5503368b23
commit e823186824
5 changed files with 16 additions and 13 deletions
+5 -2
View File
@@ -17,10 +17,13 @@ void HandleRequest(
boost::beast::http::request<Body, boost::beast::http::basic_fields<Allocator>>&& req,
Send&& send)
{
static std::shared_ptr<IUserDAO> user_dao = std::make_shared<MySQLUserDAO>(GetMySqlSession());
static std::shared_ptr<IAuthDAO> auth_dao = std::make_shared<MemoryAuthDAO>(GetMySqlSession());
static RootExecutor<Body, Allocator, boost::beast::http::string_body, Send> root_executor(
GetMySqlSession(),
std::make_shared<MySQLUserDAO>(GetMySqlSession()),
std::make_shared<MemoryAuthDAO>(GetMySqlSession())
user_dao,
auth_dao
);
root_executor(doc_root, std::move(req), std::forward<Send>(send));