summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
Diffstat (limited to 'app.py')
-rw-r--r--app.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/app.py b/app.py
index 437ad9a..07d36f7 100644
--- a/app.py
+++ b/app.py
@@ -408,10 +408,15 @@ def logout():
page = request.form['redirpage']
return redirect('/page/' + page)
+# TODO use nginx for this
@app.route('/static/<path:path>')
def get_static(path):
return send_from_directory('static', path)
+@app.route('/robots.txt')
+def robotstxt():
+ return send_from_directory('static', 'robots.txt')
+
app.debug = config['debug']
app.secret_key = config['secret_key']
if __name__ == '__main__':