update
This commit is contained in:
parent
c0ae7ab8ab
commit
331f5137ff
@ -687,7 +687,7 @@ if os.path.exists(frontend_path):
|
||||
@app.get("/")
|
||||
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):
|
||||
return FileResponse(index_path)
|
||||
return {"message": "页面不存在"}
|
||||
@ -695,7 +695,7 @@ async def root():
|
||||
@app.get("/app")
|
||||
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):
|
||||
return FileResponse(index_path)
|
||||
return {"message": "页面不存在"}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user