fix: #126 修复pip安装时主页打不开的问题
This commit is contained in:
parent
186e9c1417
commit
db53517784
@ -92,7 +92,8 @@ def HttpInit(_xiaomusic):
|
||||
|
||||
@app.get("/")
|
||||
async def read_index():
|
||||
return FileResponse("xiaomusic/static/index.html")
|
||||
folder = os.path.dirname(__file__)
|
||||
return FileResponse(f"{folder}/static/index.html")
|
||||
|
||||
|
||||
@app.get("/getversion")
|
||||
|
Loading…
Reference in New Issue
Block a user