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():