Post Diary

This commit is contained in:
2026-01-25 11:18:07 +03:00
parent 66632855c2
commit b3007c1471
+18 -13
View File
@@ -188,19 +188,24 @@ public:
} }
} }
// urls::url_view parsed_view = urls::parse_uri_reference("/api/v1/Diaries/123").value(); urls::url_view parsed_view = urls::parse_uri_reference(route).value();
// auto segs = parsed_view.segments(); auto segs = parsed_view.segments();
// std::vector<std::string_view> parts; std::vector<std::string> parts;
//
// for (auto s : segs) for (auto s : segs)
// parts.push_back(s); parts.push_back(s);
//
// if (parts.size() == 4 && if (parts.size() == 4 &&
// parts[0] == "api" && parts[0] == "api" &&
// parts[2] == "Diaries") parts[2] == "Diaries")
// { {
// std::string uuid = std::string(parts[3]); std::string uuid = std::string(parts[3]);
// }
if (req.method() == boost::beast::http::verb::put)
{
}
}
if (req.method() != boost::beast::http::verb::get && if (req.method() != boost::beast::http::verb::get &&
req.method() != boost::beast::http::verb::head) req.method() != boost::beast::http::verb::head)