Files
yunke/yunke-server/app/api/deps.py
T

11 lines
321 B
Python
Raw Normal View History

2026-08-01 12:10:03 +08:00
"""FastAPI dependencies for the yunke data-mirror API.
Re-exports :func:`app.db.base.get_session` so route code (and tests) depend on
a single API-layer seam. Tests override ``app.api.deps.get_session`` to swap in
an isolated in-memory SQLite session.
"""
from app.db.base import get_session
__all__ = ["get_session"]