2025-05-16 22:52:11 +00:00

17 lines
335 B
Python

from fastapi import APIRouter
from pydantic import BaseModel
class HealthResponse(BaseModel):
status: str
router = APIRouter()
@router.get("/health", response_model=HealthResponse)
async def health_check():
"""
Health check endpoint to verify the application is running.
"""
return HealthResponse(status="ok")