Merge pull request #987 from danielaskdd/fix-webui-install

fix: api server installation missing MANIFEST.in file
This commit is contained in:
zrguo 2025-03-04 13:26:19 +08:00 committed by GitHub
commit 6094c62540
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 1 additions and 5 deletions

1
MANIFEST.in Normal file
View File

@ -0,0 +1 @@
recursive-include lightrag/api/webui *

View File

@ -6,7 +6,6 @@ from fastapi import (
FastAPI,
Depends,
)
from fastapi.responses import FileResponse
import asyncio
import os
import logging
@ -408,10 +407,6 @@ def create_app(args):
name="webui",
)
@app.get("/webui/")
async def webui_root():
return FileResponse(static_dir / "index.html")
return app