add make_query without params

This commit is contained in:
chatlanin
2022-12-14 10:45:43 +03:00
parent 9246c12ebc
commit ebdf386ba2
2 changed files with 14 additions and 1 deletions

View File

@@ -288,6 +288,9 @@ int main(int argc, char *argv[])
}
}
hack::log()("============================================================");
hack::log()("utils::make_query");
{// ex: query function
auto query = hack::utils::make_query("super_function", "1", "two");
hack::log()("query", query);
@@ -298,8 +301,14 @@ int main(int argc, char *argv[])
hack::utils::json js { "test", "data" };
query = hack::utils::make_query("super_function", 1, 123.3f, js);
hack::log()("query", query);
query = hack::utils::make_query("super_function");
hack::log()("query", query);
}
hack::log()("============================================================");
hack::log()("utils::is_link");
{// ex: is link
std::string link { "https://google.com" };
if (hack::security::is_link(link))