diff --git a/main.cpp b/main.cpp index 99c43ff..1fa1921 100644 --- a/main.cpp +++ b/main.cpp @@ -254,6 +254,20 @@ int main(int ac, const char* av[]) { return xmrblocks.show_checkrawkeyimgs(raw_data); }); + CROW_ROUTE(app, "/genrawkeyimgs").methods("POST"_method) + ([&](const crow::request& req) { + + map post_body = xmreg::parse_crow_post_data(req.body); + + for (auto& kv: post_body) + { + cout << kv.first << ": " << kv.second << endl; + } + + + return xmrblocks.show_checkrawkeyimgs(string{}); + }); + CROW_ROUTE(app, "/search").methods("GET"_method) ([&](const crow::request& req) { diff --git a/src/templates/checkrawkeyimgs.html b/src/templates/checkrawkeyimgs.html index 87d69e7..ce7a92b 100644 --- a/src/templates/checkrawkeyimgs.html +++ b/src/templates/checkrawkeyimgs.html @@ -24,31 +24,43 @@

Key images for address: {{address}}

- - - {{#key_imgs}} + + +
Key no.Key imageTimestampIs spent?
- - - - + + + + - {{/key_imgs}} -
{{key_no}} - {{#tx_hash_found}} - {{key_image}} - {{/tx_hash_found}} - {{^tx_hash_found}} - {{key_image}} - {{/tx_hash_found}} - {{timestamp}} - {{#is_spent}} - {{is_spent}} - {{/is_spent}} - {{^is_spent}} - {{is_spent}} - {{/is_spent}} - Key no.Key imageTimestampIs spent?
+ {{#key_imgs}} + + + {{key_no}} + + {{#tx_hash_found}} + {{key_image}} + {{/tx_hash_found}} + {{^tx_hash_found}} + {{key_image}} + {{/tx_hash_found}} + + {{timestamp}} + + {{#is_spent}} + {{is_spent}} + {{/is_spent}} + {{^is_spent}} + {{is_spent}} + {{/is_spent}} + + + {{/key_imgs}} + +
+ + +