diff --git a/src/endpoints_handlers/RootExecutor.h b/src/endpoints_handlers/RootExecutor.h index 42f499a..0400d4f 100644 --- a/src/endpoints_handlers/RootExecutor.h +++ b/src/endpoints_handlers/RootExecutor.h @@ -52,6 +52,9 @@ class RootExecutor Body, Allocator, boost::beast::http::string_body>; using RoutePutDiaryExecutor = PutDiaryExecutor< Body, Allocator, boost::beast::http::string_body>; + using RouteDeleteDiaryExecutor = DeleteDiaryExecutor< + Body, Allocator, boost::beast::http::string_body>; + using IRouteController = IController; using RouteController = Controller; using RoutesPathes = std::unordered_map>; @@ -208,7 +211,7 @@ public: if (req.method() == boost::beast::http::verb::put) { - return send(PutDiaryExecutor( + return send(RoutePutDiaryExecutor( session_, auth_dao_, diaries_dao_ @@ -217,7 +220,7 @@ public: if (req.method() == boost::beast::http::verb::delete_) { - return send(DeleteDiaryExecutor( + return send(RouteDeleteDiaryExecutor( session_, auth_dao_, diaries_dao_