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