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():