summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <mail2xengineering@protonmail.com>2020-09-03 10:57:16 +0200
committerxengineering <mail2xengineering@protonmail.com>2020-09-03 10:57:16 +0200
commitdc601ffc21ac54895cb115ee0545cb7fad835c19 (patch)
tree1290b3310b1008116f029192f1cfbb7740a50d5b
parent531f9bf63d34a9e54837c8a0bf69da9a08a82525 (diff)
downloadpicontrol-dc601ffc21ac54895cb115ee0545cb7fad835c19.tar
picontrol-dc601ffc21ac54895cb115ee0545cb7fad835c19.tar.zst
picontrol-dc601ffc21ac54895cb115ee0545cb7fad835c19.zip
Add favicon.ico Support
-rwxr-xr-xmain.py5
-rw-r--r--static/img/favicon.icobin0 -> 6715 bytes
2 files changed, 5 insertions, 0 deletions
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
--- /dev/null
+++ b/static/img/favicon.ico
Binary files differ