trygithubactions / api /routers /show_analytics.py
subashpoudel's picture
Included CI CD
583f6dd
raw
history blame
318 Bytes
from fastapi import APIRouter
from api.stored_data import stored_data
from src.genai.orchestration_agent.utils.utils import show_analytics
router=APIRouter()
@router.post("/show-analytics")
def show_analytics_endpoint():
response = show_analytics(stored_data['business_details'])
return {'response': response}