started work on /checkandpush

master
moneroexamples 8 years ago
parent 2aff4fc98e
commit f6037bc33e

@ -217,9 +217,12 @@ int main(int ac, const char* av[]) {
CROW_ROUTE(app, "/checkandpush").methods("POST"_method) CROW_ROUTE(app, "/checkandpush").methods("POST"_method)
([&](const crow::request& req) { ([&](const crow::request& req) {
//string rawtxdata = string(req.post().get("rawtxdata")); //string rawtxdata = string(req.post().get("rawtxdata"));
//crow::query_string post_data = crow::query_string(string("?#")+req.body); crow::query_string post_data(req.body);
//cout << post_data.get("rawtxdata") << endl; //cout << req.url_params.get("rawtxdata") << endl;
cout << req.body << endl; cout << req.body << endl;
//auto j = crow::json::load(req.body);
//cout << req.get_header_value("rawtxdata") << endl;
//cout << j["rawtxdata"] << endl;
return xmrblocks.show_checkandpushtx(); return xmrblocks.show_checkandpushtx();
}); });

Loading…
Cancel
Save