From 64f789885c0904bab8dad15e1cfe373d86161b78 Mon Sep 17 00:00:00 2001 From: jwansek Date: Fri, 12 Mar 2021 19:49:50 +0000 Subject: added robots.txt --- app.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'app.py') diff --git a/app.py b/app.py index c77d55f..edc69b3 100644 --- a/app.py +++ b/app.py @@ -62,6 +62,10 @@ def index(): commits = db.get_cached_commits(since = datetime.datetime.now() - datetime.timedelta(days = 7)) ) +@app.route("/robots.txt") +def robots(): + return flask.send_from_directory("static", "robots.txt") + @app.route("/discord") def discord(): with database.Database() as db: @@ -196,4 +200,4 @@ if __name__ == "__main__": else: app.run(host = "0.0.0.0", port = 5001, debug = True) except IndexError: - app.run(host = "0.0.0.0", port = 5001, debug = True) \ No newline at end of file + app.run(host = "0.0.0.0", port = 5001, debug = True) -- cgit v1.2.3