From aaf6afa449c102d2f47337a84cd3503a8ea37b13 Mon Sep 17 00:00:00 2001 From: Redume Date: Mon, 30 Sep 2024 16:28:56 +0300 Subject: [PATCH] Fix router for today wallpaper --- src/routes/wallpaper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/wallpaper.py b/src/routes/wallpaper.py index c15d2d7..431bf15 100644 --- a/src/routes/wallpaper.py +++ b/src/routes/wallpaper.py @@ -13,7 +13,7 @@ template = Jinja2Templates(directory='./src/web/html') @router.get('/wallpaper/today', response_class=HTMLResponse) async def today_wallpaper(request: Request): date = datetime.today().strftime('%Y-%m-%d') - res = requests.get(f'https://api.starlio.space/wallpaper/last') + res = requests.get(f'https://api.starlio.space/last') if res.status_code != 200: return FileResponse('./src/web/html/error/404.html')