started work on /checkandpush

This commit is contained in:
moneroexamples 2016-09-27 17:03:37 +08:00
parent d25213b998
commit 119afa0e37
3 changed files with 8 additions and 5 deletions

View File

@ -216,8 +216,11 @@ int main(int ac, const char* av[]) {
CROW_ROUTE(app, "/checkandpush").methods("POST"_method)
([&](const crow::request& req) {
string rawtxdata = string(req.url_params.get("rawtxdata"));
cout << rawtxdata << endl;
//string rawtxdata = string(req.post().get("rawtxdata"));
//crow::query_string post_data = crow::query_string(req.body);
//cout << post_data.get("rawtxdata") << endl;
cout << req.body << endl;
return xmrblocks.show_checkandpushtx();
});

View File

@ -3,7 +3,7 @@
<a href="https://github.com/moneroexamples/onion-monero-blockchain-explorer">source code</a>
</h5>
<h6 style="margin-top:10px">
Help support the hosting and maintenance of the Onion Monero Blockchain Explorer by donating to: <br/>
Help support the hosting and maintenance of this service by donating to: <br/>
48daf1rG3hE1Txapcsxh6WXNe9MLNKtu7W7tKTivtSoVLHErYzvdcpea2nSTgGkz66RFP4GKVAsTV14v6G3oddBTHfxP6tU
</h6>

View File

@ -142,10 +142,10 @@
Paste base64 encoded, signed transaction data here<br/>
<textarea name="rawtxdata" rows="20" cols="80"></textarea>
<br/>
<input type="submit" value="check">
<input type="submit" name="action" value="check">
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;
<input type="submit" value="push">
<input type="submit" name="action" value="push">
</form>
</div>
{{/testnet}}