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 28s
CI / test-go-edu-search (push) Successful in 28s
CI / test-python-klausur (push) Failing after 2m23s
CI / test-python-agent-core (push) Successful in 19s
CI / test-nodejs-website (push) Successful in 19s
ocr/spell/ (3): smart_spell, core, text upload/ (3): api, chunked, mobile crawler/ (3): github, github_core, github_parsers + unified_grid → grid/, tesseract_extractor → ocr/engines/, htr_api → ocr/pipeline/ 12 shims added. Only main.py, config.py, storage + RAG files remain at root. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
30 lines
777 B
Python
30 lines
777 B
Python
"""
|
|
Mobile Upload API — barrel re-export.
|
|
|
|
All implementation split into:
|
|
upload_api_chunked — chunked upload endpoints (init, chunk, finalize, simple, status, cancel, list)
|
|
upload_api_mobile — mobile HTML upload page
|
|
|
|
DSGVO-konform: Data stays local in WLAN, no external transmission.
|
|
"""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from .chunked import ( # noqa: F401
|
|
router as _chunked_router,
|
|
UPLOAD_DIR,
|
|
CHUNK_DIR,
|
|
EH_UPLOAD_DIR,
|
|
_upload_sessions,
|
|
InitUploadRequest,
|
|
InitUploadResponse,
|
|
ChunkUploadResponse,
|
|
FinalizeResponse,
|
|
)
|
|
from .mobile import router as _mobile_router # noqa: F401
|
|
|
|
# Composite router that includes both sub-routers
|
|
router = APIRouter()
|
|
router.include_router(_chunked_router)
|
|
router.include_router(_mobile_router)
|