11 lines
321 B
Python
11 lines
321 B
Python
|
|
"""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"]
|