from fastapi import APIRouter router = APIRouter() @router.head("/") async def health_check(): return {"status": "ok"}