readme updated

master
moneroexamples 9 years ago
parent 4f48035767
commit eaba4dae4f

@ -127,8 +127,13 @@ int main(int ac, const char* av[]) {
return xmrblocks.show_tx(tx_hash, with_ring_signatures); return xmrblocks.show_tx(tx_hash, with_ring_signatures);
}); });
CROW_ROUTE(app, "/myoutputs/<string>/<string>/<string>") CROW_ROUTE(app, "/myoutputs").methods("GET"_method)
([&](string tx_hash, string xmr_address, string viewkey) { ([&](const crow::request& req) {
string tx_hash = string(req.url_params.get("tx_hash"));
string xmr_address = string(req.url_params.get("xmr_address"));
string viewkey = string(req.url_params.get("viewkey"));
return xmrblocks.show_my_outputs(tx_hash, xmr_address, viewkey); return xmrblocks.show_my_outputs(tx_hash, xmr_address, viewkey);
}); });

@ -100,16 +100,13 @@ int main(int ac, const char* av[]) {
return xmrblocks.show_tx(tx_hash, with_ring_signatures); return xmrblocks.show_tx(tx_hash, with_ring_signatures);
}); });
// CROW_ROUTE(app, "/myoutputs/<string>/<string>/<string>")
// ([&](string tx_hash, string xmr_address, string viewkey) {
// return xmrblocks.show_my_outputs(tx_hash, xmr_address, viewkey);
// });
CROW_ROUTE(app, "/myoutputs").methods("GET"_method) CROW_ROUTE(app, "/myoutputs").methods("GET"_method)
([&](const crow::request& req) { ([&](const crow::request& req) {
string tx_hash = string(req.url_params.get("tx_hash")); string tx_hash = string(req.url_params.get("tx_hash"));
string xmr_address = string(req.url_params.get("xmr_address")); string xmr_address = string(req.url_params.get("xmr_address"));
string viewkey = string(req.url_params.get("viewkey")); string viewkey = string(req.url_params.get("viewkey"));
return xmrblocks.show_my_outputs(tx_hash, xmr_address, viewkey); return xmrblocks.show_my_outputs(tx_hash, xmr_address, viewkey);
}); });

Loading…
Cancel
Save