mirror of
https://github.com/Starlio-app/Starlio-web.git
synced 2024-11-05 17:03:58 +03:00
Fix router for today wallpaper
This commit is contained in:
parent
aa9c79b478
commit
aaf6afa449
1 changed files with 1 additions and 1 deletions
|
@ -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')
|
||||
|
|
Loading…
Reference in a new issue