Files
WhatsAppCentralizado/services/integrations/app/main.py
Claude AI 95cd70af1f feat(integrations): add contact sync service
Add bidirectional contact synchronization between WhatsApp Central and Odoo,
including sync endpoints and ContactSyncService.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:26:18 +00:00

22 lines
505 B
Python

from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.routers import odoo_router, sync_router
app = FastAPI(title="WhatsApp Central - Integrations Service")
app.add_middleware(
CORSMiddleware,
allow_origins=["*"],
allow_credentials=True,
allow_methods=["*"],
allow_headers=["*"],
)
app.include_router(odoo_router)
app.include_router(sync_router)
@app.get("/health")
def health_check():
return {"status": "healthy", "service": "integrations"}