This commit is contained in:
aaron 2026-03-15 10:51:35 +08:00
parent c0ae7ab8ab
commit 331f5137ff

View File

@ -687,7 +687,7 @@ if os.path.exists(frontend_path):
@app.get("/") @app.get("/")
async def root(): async def root():
"""根路径,返回主应用页面""" """根路径,返回主应用页面"""
index_path = os.path.join(frontend_path, "index.html") index_path = os.path.join(frontend_path, "trading.html")
if os.path.exists(index_path): if os.path.exists(index_path):
return FileResponse(index_path) return FileResponse(index_path)
return {"message": "页面不存在"} return {"message": "页面不存在"}
@ -695,7 +695,7 @@ async def root():
@app.get("/app") @app.get("/app")
async def app_page(): async def app_page():
"""主应用页面""" """主应用页面"""
index_path = os.path.join(frontend_path, "index.html") index_path = os.path.join(frontend_path, "trading.html")
if os.path.exists(index_path): if os.path.exists(index_path):
return FileResponse(index_path) return FileResponse(index_path)
return {"message": "页面不存在"} return {"message": "页面不存在"}