aboutsummaryrefslogtreecommitdiffstats
path: root/python/fatcat/routes.py
diff options
context:
space:
mode:
Diffstat (limited to 'python/fatcat/routes.py')
-rw-r--r--python/fatcat/routes.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/python/fatcat/routes.py b/python/fatcat/routes.py
index ec6b849e..b23dc9d4 100644
--- a/python/fatcat/routes.py
+++ b/python/fatcat/routes.py
@@ -342,6 +342,12 @@ def robots():
'robots.txt',
mimetype='text/plain')
+@app.route('/static/fatcat.jpg', methods=['GET'])
+def fatcat_photo():
+ return send_from_directory(os.path.join(app.root_path, 'static'),
+ 'fatcat.jpg',
+ mimetype='image/jpeg')
+
@app.route('/health', methods=['GET'])
def health():
return jsonify({'ok': True})