mirror of
https://git.wownero.com/wownero/onion-wownero-blockchain-explorer.git
synced 2024-08-15 00:33:12 +00:00
robots.txt route added
This commit is contained in:
parent
65b3bc1c7b
commit
21fa0ba416
1 changed files with 7 additions and 0 deletions
7
main.cpp
7
main.cpp
|
@ -145,6 +145,13 @@ 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")
|
||||||
|
([&]() {
|
||||||
|
string text = "User-agent: *\n"
|
||||||
|
"Disallow: ";
|
||||||
|
return text;
|
||||||
|
});
|
||||||
|
|
||||||
CROW_ROUTE(app, "/autorefresh")
|
CROW_ROUTE(app, "/autorefresh")
|
||||||
([&]() {
|
([&]() {
|
||||||
uint64_t page_no {0};
|
uint64_t page_no {0};
|
||||||
|
|
Loading…
Reference in a new issue