"""Data Entry module router factory.""" from fastapi import APIRouter def create_data_entry_router() -> APIRouter: """ Create and configure Data Entry module router. Includes all data entry endpoints: - /receipts - Receipt CRUD and workflow - /ocr - OCR processing for receipts - /nomenclature - Nomenclature syncing from Oracle Returns: APIRouter: Configured router for data entry module """ router = APIRouter() # Import routers here to avoid circular imports from .receipts import router as receipts_router from .ocr import router as ocr_router from .nomenclature import router as nomenclature_router # Include all sub-routers (no prefix - already prefixed in main.py with /api/data-entry) router.include_router(receipts_router, prefix="/receipts", tags=["data-entry-receipts"]) router.include_router(ocr_router, prefix="/ocr", tags=["data-entry-ocr"]) router.include_router(nomenclature_router, prefix="/nomenclature", tags=["data-entry-nomenclature"]) return router