robots.txt route added

This commit is contained in:
moneroexamples 2016-08-20 16:59:24 +08:00
parent 65b3bc1c7b
commit 21fa0ba416
1 changed files with 7 additions and 0 deletions

View File

@ -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};