Files
Claude AI 619b291f49 feat(integrations): add Odoo webhooks handler
Add webhook endpoints to receive events from Odoo (sale orders, stock
picking, invoices) and send WhatsApp notifications when orders are
confirmed, shipped, or payments are received.

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

23 lines
558 B
Python

from fastapi import FastAPI
from fastapi.middleware.cors import CORSMiddleware
from app.routers import odoo_router, sync_router, webhooks_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.include_router(webhooks_router)
@app.get("/health")
def health_check():
return {"status": "healthy", "service": "integrations"}