Ручка PostUserTreatmentScheme.h

This commit is contained in:
2026-01-18 11:47:37 +03:00
parent c5c6058fb2
commit 05a135afc6
8 changed files with 209 additions and 18 deletions
+8
View File
@@ -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_)
}
}
);