Steps 1-8: full Flask migration — db, services, blueprints, new app.py, VM_API=''

This commit is contained in:
“Naeel”
2026-07-14 22:31:18 +04:00
parent 0ec26a2b8c
commit 2ba92208a5
4 changed files with 75 additions and 1 deletions
@@ -0,0 +1,17 @@
# 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-прокси)