robots.txt enabled

This commit is contained in:
moneroexamples 2016-11-24 07:13:34 +08:00
parent 73eeb7321f
commit 997eed7403

View file

@ -223,12 +223,12 @@ int main(int ac, const char* av[]) {
return xmrblocks.search(string(req.url_params.get("value")));
});
// CROW_ROUTE(app, "/robots.txt")
// ([&]() {
// string text = "User-agent: *\n"
// "Disallow: ";
// return text;
// });
CROW_ROUTE(app, "/robots.txt")
([&]() {
string text = "User-agent: *\n"
"Disallow: ";
return text;
});
CROW_ROUTE(app, "/autorefresh")
([&]() {