From 6cfadfca7b9fa1a43f7df8c6f3c3c283a8e1e887 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9F=B3=E7=A5=9E?= <3162475700@qq.com> Date: Sat, 28 Sep 2024 23:44:06 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8C=91=E8=87=AA=E9=83=A8=E7=BD=B2?= =?UTF-8?q?=E6=96=87=E4=BB=B6=E6=B7=BB=E5=8A=A0=E6=9A=97=E8=89=B2=E8=83=8C?= =?UTF-8?q?=E6=99=AF=E5=9B=BE=E7=89=87=E8=B7=AF=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- server.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/server.py b/server.py index 75478ac..c0c6220 100644 --- a/server.py +++ b/server.py @@ -30,6 +30,11 @@ async def favicon(): @app.get("/bg-light.webp", response_class=HTMLResponse) async def bg_light(): return FileResponse('static/bg-light.webp') + +# 返回背景图片 +@app.get("/bg-dark.webp", response_class=HTMLResponse) +async def bg_dark(): + return FileResponse('static/bg-dark.webp') @app.get("/", response_class=HTMLResponse) async def root():