summaryrefslogtreecommitdiff
path: root/app.py
diff options
context:
space:
mode:
authorschneefux <schneefux+commit@schneefux.xyz>2016-06-07 20:05:24 +0200
committerschneefux <schneefux+commit@schneefux.xyz>2016-06-07 20:05:24 +0200
commiteffcf34153ffd0a40e4604c740a9321f57317156 (patch)
tree655dfbf9e7a22d7433f3a105bfac3b2ea0805928 /app.py
parentd75195f51f05e6c9cf11ac22dcdc1406620ec038 (diff)
downloadjokevote-effcf34153ffd0a40e4604c740a9321f57317156.tar.gz
jokevote-effcf34153ffd0a40e4604c740a9321f57317156.zip
lock search engines out
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__':