mirror of
https://github.com/dograh-hq/dograh.git
synced 2026-07-22 11:51:04 +02:00
Initial Commit 🚀 🚀
This commit is contained in:
commit
4f2a629340
444 changed files with 76863 additions and 0 deletions
39
api/routes/main.py
Normal file
39
api/routes/main.py
Normal file
|
|
@ -0,0 +1,39 @@
|
|||
from fastapi import APIRouter
|
||||
from loguru import logger
|
||||
|
||||
from api.routes.campaign import router as campaign_router
|
||||
from api.routes.integration import router as integration_router
|
||||
from api.routes.looptalk import router as looptalk_router
|
||||
from api.routes.organization_usage import router as organization_usage_router
|
||||
from api.routes.reports import router as reports_router
|
||||
from api.routes.rtc_offer import router as rtc_offer_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
|
||||
from api.routes.twilio import router as twilio_router
|
||||
from api.routes.user import router as user_router
|
||||
from api.routes.workflow import router as workflow_router
|
||||
|
||||
router = APIRouter(
|
||||
tags=["main"],
|
||||
responses={404: {"description": "Not found"}},
|
||||
)
|
||||
|
||||
router.include_router(twilio_router)
|
||||
router.include_router(rtc_offer_router)
|
||||
router.include_router(superuser_router)
|
||||
router.include_router(workflow_router)
|
||||
router.include_router(user_router)
|
||||
router.include_router(campaign_router)
|
||||
router.include_router(integration_router)
|
||||
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)
|
||||
|
||||
|
||||
@router.get("/health")
|
||||
async def health():
|
||||
logger.debug("Health endpoint called")
|
||||
return {"message": "OK"}
|
||||
Loading…
Add table
Add a link
Reference in a new issue