- Add FastAPI app with title 'Debate API' v1.0.0 - Configure pydantic-settings for environment-based configuration - Create /health endpoint at root level - Create /api/v1/health and /api/v1/health/ready endpoints - Disable docs/redoc in production environment
9 lines
218 B
Python
9 lines
218 B
Python
"""API v1 router configuration."""
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from backend.app.api.v1.endpoints import health
|
|
|
|
api_router = APIRouter()
|
|
|
|
api_router.include_router(health.router, prefix="/health", tags=["health"])
|