File size: 318 Bytes
583f6dd
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
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}