Files
breakpilot-lehrer/klausur-service/backend/ocr_pipeline_geometry.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

28 lines
1.0 KiB
Python

"""
OCR Pipeline Geometry API (barrel re-export)
This module was split into:
- ocr_pipeline_deskew.py (Deskew endpoints)
- ocr_pipeline_dewarp.py (Dewarp endpoints)
- ocr_pipeline_structure.py (Structure detection + exclude regions)
- ocr_pipeline_columns.py (Column detection + ground truth)
The `router` object is assembled here by including all sub-routers.
Importers that did `from ocr_pipeline_geometry import router` continue to work.
"""
from fastapi import APIRouter
from ocr_pipeline_deskew import router as _deskew_router
from ocr_pipeline_dewarp import router as _dewarp_router
from ocr_pipeline_structure import router as _structure_router
from ocr_pipeline_columns import router as _columns_router
# Assemble the combined router.
# All sub-routers use prefix="/api/v1/ocr-pipeline", so include without extra prefix.
router = APIRouter()
router.include_router(_deskew_router)
router.include_router(_dewarp_router)
router.include_router(_structure_router)
router.include_router(_columns_router)