aboutsummaryrefslogtreecommitdiffstats
path: root/app.py
diff options
context:
space:
mode:
authorjwansek <eddie.atten.ea29@gmail.com>2021-03-12 19:49:50 +0000
committerjwansek <eddie.atten.ea29@gmail.com>2021-03-12 19:49:50 +0000
commit64f789885c0904bab8dad15e1cfe373d86161b78 (patch)
tree587e3ba4ed6a2a5ed509b93f690c5849e45da8b9 /app.py
parent799ea9d1f3b7f19293a9560ad06c7f98d43d5614 (diff)
downloadeda.gay-64f789885c0904bab8dad15e1cfe373d86161b78.tar.gz
eda.gay-64f789885c0904bab8dad15e1cfe373d86161b78.zip
added robots.txt
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)