generated from Sithas/conan_template
Post Diary
This commit is contained in:
@@ -12,6 +12,7 @@
|
||||
#include "PostUserTreatmentSchemeExecutor.h"
|
||||
#include "PostUserMedicationsExecutor.h"
|
||||
#include "GetDiariesExecutor.h"
|
||||
#include "PostDiaryExecutor.h"
|
||||
#include "../DAO/IUserDAO.h"
|
||||
#include "../DAO/IAuthDAO.h"
|
||||
#include "../DAO/IDiariesDAO.h"
|
||||
@@ -42,6 +43,8 @@ class RootExecutor
|
||||
Body, Allocator, boost::beast::http::string_body>;
|
||||
using RouteGetDiariesExecutor = GetDiariesExecutor<
|
||||
Body, Allocator, boost::beast::http::string_body>;
|
||||
using RoutePostDiaryExecutor = PostDiaryExecutor<
|
||||
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>>;
|
||||
@@ -139,6 +142,11 @@ public:
|
||||
std::make_shared<RouteGetDiariesExecutor>(session_, auth_dao_,
|
||||
diaries_dao_)
|
||||
},
|
||||
{
|
||||
boost::beast::http::verb::post,
|
||||
std::make_shared<RoutePostDiaryExecutor>(session_, auth_dao_,
|
||||
diaries_dao_)
|
||||
},
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user