generated from Sithas/conan_template
База для ручки GetUserDiariesExecutor.h
This commit is contained in:
@@ -10,6 +10,7 @@
|
||||
#include "GetUserMedicationsExecutor.h"
|
||||
#include "GetUserTreatmentSchemeExecutor.h"
|
||||
#include "PostUserMedicationsExecutor.h"
|
||||
#include "GetDiariesExecutor.h"
|
||||
#include "../DAO/IUserDAO.h"
|
||||
#include "../DAO/IAuthDAO.h"
|
||||
#include "../DAO/IDiariesDAO.h"
|
||||
@@ -36,6 +37,8 @@ class RootExecutor
|
||||
Body, Allocator, boost::beast::http::string_body>;
|
||||
using RouteGetUserTreatmentSchemeExecutor = GetUserTreatmentSchemeExecutor<
|
||||
Body, Allocator, boost::beast::http::string_body>;
|
||||
using RouteGetDiariesExecutor = GetDiariesExecutor<
|
||||
Body, Allocator, boost::beast::http::string_body>;
|
||||
using IRouteController = IController<Body, Allocator, boost::beast::http::string_body>;
|
||||
using RouteController = Controller<Body, Allocator, boost::beast::http::string_body>;
|
||||
using RoutesPathes = std::unordered_map<std::string, std::unique_ptr<IRouteController>>;
|
||||
@@ -120,6 +123,16 @@ public:
|
||||
},
|
||||
}
|
||||
);
|
||||
|
||||
routes_pathes_["/api/v1/Diaries"] = std::make_unique<RouteController>(
|
||||
typename RouteController::HTTPMethodsToExecutors{
|
||||
{
|
||||
boost::beast::http::verb::get,
|
||||
std::make_shared<RouteGetDiariesExecutor>(session_, auth_dao_,
|
||||
diaries_dao_)
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
void operator ()(
|
||||
|
||||
Reference in New Issue
Block a user