aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py6
1 files changed, 5 insertions, 1 deletions
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)