generated from Sithas/conan_template
Перепись с const std::string& на std::string_view
This commit is contained in:
@@ -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<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>>;
|
||||
@@ -208,7 +211,7 @@ public:
|
||||
|
||||
if (req.method() == boost::beast::http::verb::put)
|
||||
{
|
||||
return send(PutDiaryExecutor<Body, Allocator, ResponseType>(
|
||||
return send(RoutePutDiaryExecutor(
|
||||
session_,
|
||||
auth_dao_,
|
||||
diaries_dao_
|
||||
@@ -217,7 +220,7 @@ public:
|
||||
|
||||
if (req.method() == boost::beast::http::verb::delete_)
|
||||
{
|
||||
return send(DeleteDiaryExecutor<Body, Allocator, ResponseType>(
|
||||
return send(RouteDeleteDiaryExecutor(
|
||||
session_,
|
||||
auth_dao_,
|
||||
diaries_dao_
|
||||
|
||||
Reference in New Issue
Block a user