From 997eed7403d17d1f30a59565dc0a35b5c4f2b65f Mon Sep 17 00:00:00 2001 From: moneroexamples Date: Thu, 24 Nov 2016 07:13:34 +0800 Subject: [PATCH] robots.txt enabled --- main.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/main.cpp b/main.cpp index 5b9638f..f448062 100644 --- a/main.cpp +++ b/main.cpp @@ -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") ([&]() {