refactor: Simplify history router initialization

- Removed the prefix from the history router to streamline the API structure.
- Adjusted the router configuration for improved clarity and maintainability.
This commit is contained in:
daohp 2025-12-03 14:52:38 +07:00
parent c05434aab1
commit 00a54c1c44

View file

@ -21,7 +21,7 @@ from lightrag.api.session_schemas import (
) )
from lightrag.utils import logger from lightrag.utils import logger
router = APIRouter(prefix="/history", tags=["Session History"]) router = APIRouter(tags=["Session History"])
async def get_current_user_id( async def get_current_user_id(