1
0
Fork 0
Browse Source

add route for robots.txt.

pull/7/head
Craig Oates 4 years ago
parent
commit
400c0f0310
  1. 5
      app/app.py
  2. 0
      app/templates/robots.txt

5
app/app.py

@ -12,5 +12,10 @@ app.add_api("swagger.yml")
def home ():
return render_template("home.html")
@app.route("/robots.txt")
@app.route("/robots")
def robots():
return render_template("robots.txt")
if __name__ == "__main__":
app.run(host="0.0.0.0", debug=True)

0
app/static/robots.txt → app/templates/robots.txt