feat(fase2): add Flow API routes and Flow Engine main app

API Gateway:
- Add flows router with CRUD endpoints
- Add activate/deactivate endpoints
- Auto-deactivate other flows for welcome/fallback triggers

Flow Engine:
- Add main.py with FastAPI app
- Add /process endpoint for message handling
- Add SQLAlchemy models (mirrors api-gateway)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Claude AI
2026-01-29 10:20:35 +00:00
parent 8824f65a62
commit 14a579d5ca
5 changed files with 242 additions and 2 deletions

View File

@@ -1,4 +1,5 @@
from app.routers.auth import router as auth_router
from app.routers.whatsapp import router as whatsapp_router
from app.routers.flows import router as flows_router
__all__ = ["auth_router", "whatsapp_router"]
__all__ = ["auth_router", "whatsapp_router", "flows_router"]