优化前端提示

This commit is contained in:
xunbu
2025-08-13 15:50:35 +08:00
parent 9b74483437
commit c50e3fb527
3 changed files with 3 additions and 3 deletions

View File

@@ -1102,7 +1102,7 @@ async def main_page():
"Expires": "0"}
return FileResponse(index_path, headers=no_cache_headers)
@app.get("/EN", response_class=HTMLResponse, include_in_schema=False)
@app.get("/EN/{rest_of_path:path}", response_class=HTMLResponse, include_in_schema=False)
async def main_page_EN():
index_path = Path(STATIC_DIR) / "index_EN.html"
if not index_path.exists(): raise HTTPException(status_code=404, detail="index_EN.html not found")

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long