Files
breakpilot-lehrer/klausur-service/backend/routes/eh.py
Benjamin Admin 6811264756 [split-required] Split final batch of monoliths >1000 LOC
Python (6 files in klausur-service):
- rbac.py (1,132 → 4), admin_api.py (1,012 → 4)
- routes/eh.py (1,111 → 4), ocr_pipeline_geometry.py (1,105 → 5)

Python (2 files in backend-lehrer):
- unit_api.py (1,226 → 6), game_api.py (1,129 → 5)

Website (6 page files):
- 4x klausur-korrektur pages (1,249-1,328 LOC each) → shared components
  in website/components/klausur-korrektur/ (17 shared files)
- companion (1,057 → 10), magic-help (1,017 → 8)

All re-export barrels preserve backward compatibility.
Zero import errors verified.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-24 23:17:30 +02:00

25 lines
868 B
Python

"""
Klausur-Service BYOEH Routes (barrel re-export)
This module was split into:
- routes/eh_upload.py (Upload, list, CRUD, index, RAG query)
- routes/eh_sharing.py (Key sharing, klausur linking, access chain)
- routes/eh_invitations.py (Invitation flow: invite, accept, decline, revoke)
The `router` object is assembled here by including all sub-routers.
Importers that did `from .eh import router` continue to work.
"""
from fastapi import APIRouter
from .eh_upload import router as _upload_router
from .eh_sharing import router as _sharing_router
from .eh_invitations import router as _invitations_router
# Assemble the combined router.
# All sub-routers define their own full paths, so no prefix needed.
router = APIRouter()
router.include_router(_upload_router)
router.include_router(_sharing_router)
router.include_router(_invitations_router)