started work on /checkandpush
This commit is contained in:
parent
d25213b998
commit
119afa0e37
7
main.cpp
7
main.cpp
|
@ -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();
|
||||
});
|
||||
|
||||
|
|
|
@ -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>
|
||||
|
||||
|
|
|
@ -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">
|
||||
|
||||
|
||||
<input type="submit" value="push">
|
||||
<input type="submit" name="action" value="push">
|
||||
</form>
|
||||
</div>
|
||||
{{/testnet}}
|
||||
|
|
Loading…
Reference in New Issue