From 07990647576f0c714dad72e82b99c2aaf99f6d50 Mon Sep 17 00:00:00 2001 From: pjsier Date: Wed, 10 Jan 2024 18:20:16 -0500 Subject: [PATCH] Update robots.txt --- api/api.py | 5 +++++ public/robots.txt | 1 - 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/api/api.py b/api/api.py index d6ec7f8..759f4c3 100644 --- a/api/api.py +++ b/api/api.py @@ -75,6 +75,11 @@ def index(): return send_file(os.path.join(STATIC_BUILD_DIR, "index.html")) +@app.route("/robots.txt", methods=["GET"]) +def robots(): + return send_file(os.path.join(STATIC_BUILD_DIR, "robots.txt")) + + @app.route("/api_v1/pin-lookup", methods=["POST"]) def handle_form0(): response_dict = address_candidates( diff --git a/public/robots.txt b/public/robots.txt index e9e57dc..eb05362 100644 --- a/public/robots.txt +++ b/public/robots.txt @@ -1,3 +1,2 @@ -# https://www.robotstxt.org/robotstxt.html User-agent: * Disallow: