feat(integrations): setup integrations service structure

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
Claude AI
2026-01-29 22:17:18 +00:00
parent 24850e23f0
commit e24bc20070
5 changed files with 56 additions and 0 deletions

View File

@@ -0,0 +1 @@
# Integrations Service

View File

@@ -0,0 +1,22 @@
from pydantic_settings import BaseSettings
from functools import lru_cache
class Settings(BaseSettings):
# Odoo Connection
ODOO_URL: str = ""
ODOO_DB: str = ""
ODOO_USER: str = ""
ODOO_API_KEY: str = ""
# Internal Services
API_GATEWAY_URL: str = "http://localhost:8000"
FLOW_ENGINE_URL: str = "http://localhost:8001"
class Config:
env_file = ".env"
@lru_cache
def get_settings() -> Settings:
return Settings()

View File

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