16 lines
327 B
Python
16 lines
327 B
Python
"""Unauthenticated health endpoint for local liveness checks."""
|
|
|
|
from __future__ import annotations
|
|
|
|
from fastapi import APIRouter
|
|
|
|
from ..api_models import HealthResponse
|
|
|
|
|
|
router = APIRouter(tags=["health"])
|
|
|
|
|
|
@router.get("/health", response_model=HealthResponse)
|
|
def health() -> HealthResponse:
|
|
return HealthResponse()
|