Update server.py

This commit is contained in:
Nova Cat 2025-01-15 15:14:57 -08:00
parent 066f9bb857
commit eeb75ebd8a

View file

@ -10,7 +10,7 @@ homefolder = str(Path.home())
app = Flask(__name__)
@app.route("/robots.txt")
def robots():
return Response("User-agent: *\nDisallow: /gem\nDisallow: /loadcert\nDisallow: gencert.zip\nDisallow: /certload", mimetype="text/plain")
return Response("User-agent: *\nDisallow: /gem\nDisallow: /loadcert\nDisallow: /gencert.zip\nDisallow: /certload", mimetype="text/plain")
@app.route("/")
def root():
return send_file("home.html")