Update server.py

This commit is contained in:
Nova Cat 2025-01-15 15:11:36 -08:00
parent 72141b19a6
commit 80e447c5c8

View file

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