2025-09-09 14:37:32 +05:30
|
|
|
from fastapi import APIRouter
|
|
|
|
|
from loguru import logger
|
|
|
|
|
|
|
|
|
|
from api.routes.campaign import router as campaign_router
|
2025-12-22 14:08:30 +05:30
|
|
|
from api.routes.credentials import router as credentials_router
|
2025-09-09 14:37:32 +05:30
|
|
|
from api.routes.integration import router as integration_router
|
|
|
|
|
from api.routes.looptalk import router as looptalk_router
|
2025-10-04 12:22:50 +05:30
|
|
|
from api.routes.organization import router as organization_router
|
2025-09-09 14:37:32 +05:30
|
|
|
from api.routes.organization_usage import router as organization_usage_router
|
2025-12-22 14:08:30 +05:30
|
|
|
from api.routes.public_agent import router as public_agent_router
|
2025-11-15 17:32:37 +05:30
|
|
|
from api.routes.public_embed import router as public_embed_router
|
2025-09-09 14:37:32 +05:30
|
|
|
from api.routes.reports import router as reports_router
|
|
|
|
|
from api.routes.s3_signed_url import router as s3_router
|
|
|
|
|
from api.routes.service_keys import router as service_keys_router
|
|
|
|
|
from api.routes.superuser import router as superuser_router
|
2025-10-27 15:29:57 +05:30
|
|
|
from api.routes.telephony import router as telephony_router
|
2026-01-02 13:11:02 +05:30
|
|
|
from api.routes.tool import router as tool_router
|
2025-09-09 14:37:32 +05:30
|
|
|
from api.routes.user import router as user_router
|
2025-09-22 18:01:45 +05:30
|
|
|
from api.routes.webrtc_signaling import router as webrtc_signaling_router
|
2025-09-09 14:37:32 +05:30
|
|
|
from api.routes.workflow import router as workflow_router
|
2025-11-15 17:32:37 +05:30
|
|
|
from api.routes.workflow_embed import router as workflow_embed_router
|
2025-09-09 14:37:32 +05:30
|
|
|
|
|
|
|
|
router = APIRouter(
|
|
|
|
|
tags=["main"],
|
|
|
|
|
responses={404: {"description": "Not found"}},
|
|
|
|
|
)
|
|
|
|
|
|
2025-11-04 18:12:06 +05:30
|
|
|
router.include_router(telephony_router)
|
2025-09-09 14:37:32 +05:30
|
|
|
router.include_router(superuser_router)
|
|
|
|
|
router.include_router(workflow_router)
|
|
|
|
|
router.include_router(user_router)
|
|
|
|
|
router.include_router(campaign_router)
|
2025-12-22 14:08:30 +05:30
|
|
|
router.include_router(credentials_router)
|
2026-01-02 13:11:02 +05:30
|
|
|
router.include_router(tool_router)
|
2025-09-09 14:37:32 +05:30
|
|
|
router.include_router(integration_router)
|
2025-10-04 12:22:50 +05:30
|
|
|
router.include_router(organization_router)
|
2025-09-09 14:37:32 +05:30
|
|
|
router.include_router(s3_router)
|
|
|
|
|
router.include_router(service_keys_router)
|
|
|
|
|
router.include_router(looptalk_router)
|
|
|
|
|
router.include_router(organization_usage_router)
|
|
|
|
|
router.include_router(reports_router)
|
2025-09-22 18:01:45 +05:30
|
|
|
router.include_router(webrtc_signaling_router)
|
2025-11-15 17:32:37 +05:30
|
|
|
router.include_router(public_embed_router)
|
2025-12-22 14:08:30 +05:30
|
|
|
router.include_router(public_agent_router)
|
2025-11-15 17:32:37 +05:30
|
|
|
router.include_router(workflow_embed_router)
|
2025-09-09 14:37:32 +05:30
|
|
|
|
|
|
|
|
|
|
|
|
|
@router.get("/health")
|
|
|
|
|
async def health():
|
|
|
|
|
logger.debug("Health endpoint called")
|
|
|
|
|
return {"message": "OK"}
|