"""
OCR Pipeline Postprocessing API — composite router assembling LLM review,
reconstruction, export, validation, image detection/generation, and
handwriting removal endpoints.

Split into sub-modules:
  ocr_pipeline_llm_review      — LLM review + apply corrections
  ocr_pipeline_reconstruction  — reconstruction save, Fabric JSON, merged entries, PDF/DOCX
  ocr_pipeline_validation      — image detection, generation, validation, handwriting removal

Lizenz: Apache 2.0
DATENSCHUTZ: Alle Verarbeitung erfolgt lokal.
"""

from fastapi import APIRouter

from .llm_review import router as _llm_review_router
from .reconstruction import router as _reconstruction_router
from .validation import router as _validation_router

# Composite router — drop-in replacement for the old monolithic router.
# ocr_pipeline_api.py imports ``from ocr.pipeline.postprocess import router``.
router = APIRouter()
router.include_router(_llm_review_router)
router.include_router(_reconstruction_router)
router.include_router(_validation_router)
