from fastapi import APIRouter
from app.services.pipeline import process_call
from app.models.schemas import CallRequest

router = APIRouter()

@router.post("/process-call")
def analyze_call(request: CallRequest):
    return process_call(request.audio_path)

