generated from Sithas/conan_template
Рабочая сборка второго executor'а
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user