From e20e350a0b7e76c324d499637cc7eb2d1984aa5b Mon Sep 17 00:00:00 2001 From: swee Date: Tue, 14 Jan 2025 19:23:13 -0800 Subject: [PATCH] Update server.py --- server.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/server.py b/server.py index d172f66..a07f0ef 100644 --- a/server.py +++ b/server.py @@ -9,7 +9,8 @@ from pathlib import Path homefolder = str(Path.home()) import uuid app = Flask(__name__) -@app.route("/robots.txt"): +@app.route("/robots.txt") +def robots(): return Response("User-agent: *\nDisallow: /", mimetype="text/plain") @app.route("/") def root():