Update server.py
This commit is contained in:
parent
72141b19a6
commit
80e447c5c8
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ homefolder = str(Path.home())
|
|||
app = Flask(__name__)
|
||||
@app.route("/robots.txt")
|
||||
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("/")
|
||||
def root():
|
||||
return send_file("home.html")
|
||||
|
|
Loading…
Add table
Reference in a new issue