robots.txt enabled
This commit is contained in:
parent
73eeb7321f
commit
997eed7403
12
main.cpp
12
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")
|
||||
([&]() {
|
||||
|
|
Loading…
Reference in New Issue