# Step 3: config.py + все blueprints + новый app.py **Ветка:** `feature/flask-migration` **Дата:** 2026-07-14 ## Создаваемые файлы - `app/config.py` — настройки - `app/routes/__init__.py` — register_routes() - `app/routes/upload_bp.py` — /upload, /convert-doc, /unzip-upload - `app/routes/pipeline_bp.py` — /process-v2 (SSE), /classify-batch - `app/routes/api_bp.py` — /api/* (groups, documents, supplements, sync, cleanup, spec-current) - `app/routes/prompts_bp.py` — /api/prompts/* - `app/routes/health_bp.py` — /health - `app/routes/pages_bp.py` — /, /architect - `app/services/process.py` — адаптированный process.py (callback → generator) - `app/app.py` — новый (замена старого, без VM-прокси)