import sys sys.path.insert(0, 'LightRAG-main') from lightrag.api.lightrag_server import create_app from lightrag.api.config import global_args app = create_app(global_args) print("Registered routes:") for route in app.routes: if hasattr(route, 'path'): print(f"{route.path} ({route.methods})") elif hasattr(route, 'routes'): for subroute in route.routes: print(f" {subroute.path} ({subroute.methods})")