Files
app-28210374/backend/app/routes/health.py
T

16 lines
298 B
Python
Raw Normal View History

2026-09-07 19:32:02 +05:30
"""Liveness endpoint. The shape every other route module copies."""
from fastapi import APIRouter
from pydantic import BaseModel
router = APIRouter()
class Health(BaseModel):
status: str
@router.get("/health", response_model=Health)
def health() -> Health:
return Health(status="ok")