Update server.py

This commit is contained in:
Nova Cat 2025-01-14 19:22:53 -08:00
parent 59c8592d78
commit bd18cefc01

View file

@ -9,6 +9,8 @@ from pathlib import Path
homefolder = str(Path.home())
import uuid
app = Flask(__name__)
@app.route("/robots.txt"):
return Response("User-agent: *\nDisallow: /", mimetype="text/plain")
@app.route("/")
def root():
return send_file("home.html")