generated from Sithas/conan_template
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b3007c1471 | |||
| 66632855c2 |
@@ -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)
|
||||||
@@ -299,9 +304,9 @@ private:
|
|||||||
return res;
|
return res;
|
||||||
}
|
}
|
||||||
|
|
||||||
boost::beast::http::response<ResponseType> SendSessionExceptionError(Request&& req, const session_exception& e)
|
StringResponse SendSessionExceptionError(Request&& req, const session_exception& e)
|
||||||
{
|
{
|
||||||
boost::beast::http::response<ResponseType> res{e.code, req.version()};
|
StringResponse res{e.code, req.version()};
|
||||||
boost::json::value response_body;
|
boost::json::value response_body;
|
||||||
|
|
||||||
response_body.emplace_object();
|
response_body.emplace_object();
|
||||||
|
|||||||
Reference in New Issue
Block a user