robots.txt route added

master
moneroexamples 8 years ago
parent 65b3bc1c7b
commit 21fa0ba416

@ -145,6 +145,13 @@ int main(int ac, const char* av[]) {
return xmrblocks.search(string(req.url_params.get("value"))); 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") CROW_ROUTE(app, "/autorefresh")
([&]() { ([&]() {
uint64_t page_no {0}; uint64_t page_no {0};

Loading…
Cancel
Save