Update server.py
This commit is contained in:
parent
bd18cefc01
commit
e20e350a0b
1 changed files with 2 additions and 1 deletions
|
@ -9,7 +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"):
|
@app.route("/robots.txt")
|
||||||
|
def robots():
|
||||||
return Response("User-agent: *\nDisallow: /", mimetype="text/plain")
|
return Response("User-agent: *\nDisallow: /", mimetype="text/plain")
|
||||||
@app.route("/")
|
@app.route("/")
|
||||||
def root():
|
def root():
|
||||||
|
|
Loading…
Add table
Reference in a new issue