mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
show_checkandpushtx method started
This commit is contained in:
parent
3574709e7f
commit
d25213b998
2 changed files with 13 additions and 0 deletions
7
main.cpp
7
main.cpp
|
@ -214,6 +214,13 @@ int main(int ac, const char* av[]) {
|
|||
return xmrblocks.show_rawtx();
|
||||
});
|
||||
|
||||
CROW_ROUTE(app, "/checkandpush").methods("POST"_method)
|
||||
([&](const crow::request& req) {
|
||||
string rawtxdata = string(req.url_params.get("rawtxdata"));
|
||||
cout << rawtxdata << endl;
|
||||
return xmrblocks.show_checkandpushtx();
|
||||
});
|
||||
|
||||
CROW_ROUTE(app, "/search").methods("GET"_method)
|
||||
([&](const crow::request& req) {
|
||||
return xmrblocks.search(string(req.url_params.get("value")));
|
||||
|
|
|
@ -1528,6 +1528,12 @@ namespace xmreg {
|
|||
return mstch::render(full_page, context);
|
||||
}
|
||||
|
||||
string
|
||||
show_checkandpushtx()
|
||||
{
|
||||
return {};
|
||||
}
|
||||
|
||||
|
||||
string
|
||||
search(string search_text)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue