From 42394ef23b929c7f5f9d9a9e7bf0c80a8e3250bf Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Sat, 25 Dec 2021 01:10:11 +0200 Subject: [PATCH] dsf --- files/routes/static.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/files/routes/static.py b/files/routes/static.py index 15c9b4bedc..0b8cb8a22b 100644 --- a/files/routes/static.py +++ b/files/routes/static.py @@ -237,7 +237,7 @@ def log_item(id, v): @app.get("/static/assets/favicon.ico") def favicon(): - return send_file(f"./static/assets/images/{site_name}/icon.webp?a=200") + return send_file(f"./assets/images/{site_name}/icon.webp?a=200") @app.get("/api") @auth_desired @@ -289,7 +289,6 @@ def static_service2(path): if request.path.endswith('.webp'): resp.headers.remove("Content-Type") resp.headers.add("Content-Type", "image/webp") - return resp @app.get('/assets/')