Files
WhatsAppCentralizado/services/integrations/app/main.py
Claude AI 4b15abcbfb feat(integrations): add Odoo API routes
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-29 22:25:36 +00:00

21 lines
460 B
Python

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