🌑自部署文件添加暗色背景图片路由
This commit is contained in:
		@@ -31,6 +31,11 @@ async def favicon():
 | 
			
		||||
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():
 | 
			
		||||
    return FileResponse('./static/index.html')
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user