mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
started work on /checkandpush
This commit is contained in:
parent
2aff4fc98e
commit
f6037bc33e
1 changed files with 5 additions and 2 deletions
7
main.cpp
7
main.cpp
|
@ -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…
Add table
Add a link
Reference in a new issue