Files
breakpilot-lehrer/klausur-service/backend/admin/api.py
Benjamin Admin eecb5472dd
Some checks failed
CI / go-lint (push) Has been skipped
CI / python-lint (push) Has been skipped
CI / nodejs-lint (push) Has been skipped
CI / test-go-school (push) Successful in 1m7s
CI / test-go-edu-search (push) Successful in 46s
CI / test-python-klausur (push) Failing after 2m32s
CI / test-python-agent-core (push) Successful in 33s
CI / test-nodejs-website (push) Successful in 34s
Fix: Update all old-style imports inside packages to new paths
65 files in klausur-service packages + 3 in backend-lehrer packages
had stale imports referencing deleted shim modules.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-26 00:19:13 +02:00

34 lines
1.0 KiB
Python

"""
Admin API for NiBiS Data Management (barrel re-export)
This module was split into:
- admin_nibis.py (NiBiS ingestion, search, stats)
- admin_rag.py (RAG upload, metrics, storage)
- admin_templates.py (Legal templates ingestion, search)
The `router` object is assembled here by including all sub-routers.
Importers that did `from admin.api import router` continue to work.
"""
from fastapi import APIRouter
from .nibis import router as _nibis_router
from .rag import router as _rag_router
from .templates import router as _templates_router
# Re-export internal state for test importers
from .nibis import ( # noqa: F401
_ingestion_status,
NiBiSSearchRequest,
search_nibis,
)
from .rag import _upload_history # noqa: F401
from .templates import _templates_ingestion_status # noqa: F401
# Assemble the combined router.
# All sub-routers use prefix="/api/v1/admin", so include without extra prefix.
router = APIRouter()
router.include_router(_nibis_router)
router.include_router(_rag_router)
router.include_router(_templates_router)