From 87a5697767e6c1ba084067b03d8e54719daa3a9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mateusz=20Gruszczy=C5=84ski?= Date: Fri, 8 May 2026 20:57:11 +0200 Subject: [PATCH] favicons --- pytorrent/routes/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pytorrent/routes/main.py b/pytorrent/routes/main.py index 0d66e30..572cf57 100644 --- a/pytorrent/routes/main.py +++ b/pytorrent/routes/main.py @@ -13,7 +13,7 @@ def _asset_url(key: str) -> str: return path if path.startswith("http") else url_for("static", filename=path) -@app.get("/favicon.ico") +@bp.get("/favicon.ico") def favicon_ico(): response = send_from_directory( current_app.static_folder, @@ -23,7 +23,7 @@ def favicon_ico(): ) response.headers["Cache-Control"] = "public, max-age=86400" return response - + @bp.route("/login", methods=["GET", "POST"]) def login():