From 21fa0ba41626856f288101a6c96c6c78eb78daf2 Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Sat, 20 Aug 2016 16:59:24 +0800 Subject: [PATCH] robots.txt route added --- main.cpp | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/main.cpp b/main.cpp index 11e6975..29c881e 100644 --- a/main.cpp +++ b/main.cpp @@ -145,6 +145,13 @@ int main(int ac, const char* av[]) { return xmrblocks.search(string(req.url_params.get("value"))); }); + CROW_ROUTE(app, "/tx/robots.txt") + ([&]() { + string text = "User-agent: *\n" + "Disallow: "; + return text; + }); + CROW_ROUTE(app, "/autorefresh") ([&]() { uint64_t page_no {0};