Refactor code structure for improved readability and maintainability
This commit is contained in:
@ -572,8 +572,10 @@ app.include_router(mcp_router, prefix="/mcp", tags=["mcp"])
|
||||
# Generic Memory Gateway v1 routes are imported lazily here to avoid changing
|
||||
# the existing legacy /api and /mcp startup path.
|
||||
from .api_v1 import router as api_v1_router # noqa: E402
|
||||
from .api_v2 import router as api_v2_router # noqa: E402
|
||||
|
||||
app.include_router(api_v1_router)
|
||||
app.include_router(api_v2_router)
|
||||
|
||||
|
||||
@app.post("/api/search", dependencies=[Depends(verify_api_key)])
|
||||
|
||||
Reference in New Issue
Block a user