Update server.py
This commit is contained in:
parent
59c8592d78
commit
bd18cefc01
1 changed files with 2 additions and 0 deletions
|
@ -9,6 +9,8 @@ from pathlib import Path
|
||||||
homefolder = str(Path.home())
|
homefolder = str(Path.home())
|
||||||
import uuid
|
import uuid
|
||||||
app = Flask(__name__)
|
app = Flask(__name__)
|
||||||
|
@app.route("/robots.txt"):
|
||||||
|
return Response("User-agent: *\nDisallow: /", mimetype="text/plain")
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def root():
|
def root():
|
||||||
return send_file("home.html")
|
return send_file("home.html")
|
||||||
|
|
Loading…
Add table
Reference in a new issue