generated from Sithas/conan_template
Ручка PostUserTreatmentScheme.h
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include "AuthLogoutExecutor.h"
|
||||
#include "GetUserMedicationsExecutor.h"
|
||||
#include "GetUserTreatmentSchemeExecutor.h"
|
||||
#include "PostUserTreatmentSchemeExecutor.h"
|
||||
#include "PostUserMedicationsExecutor.h"
|
||||
#include "GetDiariesExecutor.h"
|
||||
#include "../DAO/IUserDAO.h"
|
||||
@@ -37,6 +38,8 @@ class RootExecutor
|
||||
Body, Allocator, boost::beast::http::string_body>;
|
||||
using RouteGetUserTreatmentSchemeExecutor = GetUserTreatmentSchemeExecutor<
|
||||
Body, Allocator, boost::beast::http::string_body>;
|
||||
using RoutePostUserTreatmentSchemeExecutor = PostUserTreatmentSchemeExecutor<
|
||||
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>;
|
||||
@@ -121,6 +124,11 @@ public:
|
||||
std::make_shared<RouteGetUserTreatmentSchemeExecutor>(session_, auth_dao_,
|
||||
user_treatment_scheme_dao_)
|
||||
},
|
||||
{
|
||||
boost::beast::http::verb::post,
|
||||
std::make_shared<RoutePostUserTreatmentSchemeExecutor>(session_, auth_dao_,
|
||||
user_treatment_scheme_dao_)
|
||||
}
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user