diff --git a/lightrag/api/lightrag_server.py b/lightrag/api/lightrag_server.py index 3a5f9e38..1c1fe3a6 100644 --- a/lightrag/api/lightrag_server.py +++ b/lightrag/api/lightrag_server.py @@ -1789,9 +1789,9 @@ def create_app(args): except Exception as e: trace_exception(e) raise HTTPException(status_code=500, detail=str(e)) - + @app.get("/documents", dependencies=[Depends(optional_api_key)]) - async def get_status(): + async def documents(): """Get current system status""" return doc_manager.indexed_files @@ -1831,7 +1831,7 @@ def create_app(args): # ) # Serve the static files - static_dir = Path(__file__).parent / "static" + static_dir = Path(__file__).parent / "static" static_dir.mkdir(exist_ok=True) app.mount("/", StaticFiles(directory=static_dir, html=True), name="static") diff --git a/lightrag/api/static/index.html b/lightrag/api/static/index.html index d473b5a6..56a70ad7 100644 --- a/lightrag/api/static/index.html +++ b/lightrag/api/static/index.html @@ -10,25 +10,25 @@ .fade-in { animation: fadeIn 0.3s ease-in; } - + @keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } } - + .spin { animation: spin 1s linear infinite; } - + @keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } } - + .slide-in { animation: slideIn 0.3s ease-out; } - + @keyframes slideIn { from { transform: translateX(-100%); } to { transform: translateX(0); } @@ -128,7 +128,7 @@ 'file-manager': () => `

File Manager

- +