From 400c0f0310dd6e69a489d25934cd9d2b0bb57c4f Mon Sep 17 00:00:00 2001 From: Craig Oates Date: Wed, 8 Jan 2020 00:25:16 +0000 Subject: [PATCH] add route for robots.txt. --- app/app.py | 5 +++++ app/{static => templates}/robots.txt | 0 2 files changed, 5 insertions(+) rename app/{static => templates}/robots.txt (100%) diff --git a/app/app.py b/app/app.py index 2d3e6f6..74dc000 100644 --- a/app/app.py +++ b/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) diff --git a/app/static/robots.txt b/app/templates/robots.txt similarity index 100% rename from app/static/robots.txt rename to app/templates/robots.txt