robots.txt route added

master
moneroexamples 8 years ago
parent 21fa0ba416
commit 8506b0853c

@ -145,7 +145,7 @@ 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") CROW_ROUTE(app, "/robots.txt")
([&]() { ([&]() {
string text = "User-agent: *\n" string text = "User-agent: *\n"
"Disallow: "; "Disallow: ";

Loading…
Cancel
Save