From acd28a9a689998b5b66f0364d4a434b3e0fdff3d Mon Sep 17 00:00:00 2001 From: diogo464 Date: Wed, 28 May 2025 20:52:27 +0100 Subject: added favicon --- Containerfile | 1 + app.py | 6 ++++++ favicon.ico | Bin 0 -> 9662 bytes index.html | 1 + 4 files changed, 8 insertions(+) create mode 100644 favicon.ico diff --git a/Containerfile b/Containerfile index 83b0637..5d27003 100644 --- a/Containerfile +++ b/Containerfile @@ -24,6 +24,7 @@ COPY app.py . COPY index.html . COPY script.js . COPY logo.png . +COPY favicon.ico . # Expose the port EXPOSE 5000 diff --git a/app.py b/app.py index 002957a..121fc10 100644 --- a/app.py +++ b/app.py @@ -28,6 +28,12 @@ def script(): return send_from_directory(".", "script.js") +@app.route("/favicon.ico") +def favicon(): + """Serve the favicon.""" + return send_from_directory(".", "favicon.ico") + + @app.route("/", methods=["POST"]) def generate_files(): """Handle configuration submission and execute bonsai.""" diff --git a/favicon.ico b/favicon.ico new file mode 100644 index 0000000..849b0f4 Binary files /dev/null and b/favicon.ico differ diff --git a/index.html b/index.html index fff715a..d1ed677 100644 --- a/index.html +++ b/index.html @@ -5,6 +5,7 @@ Bonsai - Network Latency Graph Generator +