From dc601ffc21ac54895cb115ee0545cb7fad835c19 Mon Sep 17 00:00:00 2001 From: xengineering Date: Thu, 3 Sep 2020 10:57:16 +0200 Subject: Add favicon.ico Support --- main.py | 5 +++++ static/img/favicon.ico | Bin 0 -> 6715 bytes 2 files changed, 5 insertions(+) create mode 100644 static/img/favicon.ico diff --git a/main.py b/main.py index 670c7af..40770bc 100755 --- a/main.py +++ b/main.py @@ -38,6 +38,11 @@ def css(css_file): return current_app.send_static_file("css/{}".format(css_file)) +@app.route('/favicon.ico') +def favicon(): + return current_app.send_static_file("img/favicon.ico") + + if __name__ == '__main__': serve(app, listen='*:8080') # production server #app.run() # debug server - NOT FOR PRODUCTION! diff --git a/static/img/favicon.ico b/static/img/favicon.ico new file mode 100644 index 0000000..969b451 Binary files /dev/null and b/static/img/favicon.ico differ -- cgit v1.2.3-70-g09d2