From 224e4929af6fa84401944c757d9902a5f83da7a3 Mon Sep 17 00:00:00 2001 From: Bryan Newbold Date: Sat, 30 Jun 2018 23:00:03 -0700 Subject: add cat photo to front page --- python/fatcat/routes.py | 6 ++++++ python/fatcat/static/fatcat.jpg | Bin 0 -> 86240 bytes python/fatcat/templates/home.html | 4 +++- 3 files changed, 9 insertions(+), 1 deletion(-) create mode 100644 python/fatcat/static/fatcat.jpg (limited to 'python') 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}) diff --git a/python/fatcat/static/fatcat.jpg b/python/fatcat/static/fatcat.jpg new file mode 100644 index 00000000..ad100381 Binary files /dev/null and b/python/fatcat/static/fatcat.jpg differ diff --git a/python/fatcat/templates/home.html b/python/fatcat/templates/home.html index 476127f6..f1377954 100644 --- a/python/fatcat/templates/home.html +++ b/python/fatcat/templates/home.html @@ -2,7 +2,9 @@ {% block body %}
-

Welcome to fatcat!

+

Welcome to fatcat!

+ +
Current Status: Prototype
-- cgit v1.2.3