14 lines
278 B
Python
14 lines
278 B
Python
|
|
"""Health check endpoint."""
|
||
|
|
|
||
|
|
from __future__ import annotations
|
||
|
|
|
||
|
|
from fastapi import APIRouter
|
||
|
|
|
||
|
|
router = APIRouter(tags=["health"])
|
||
|
|
|
||
|
|
|
||
|
|
@router.get("/api/v1/health")
|
||
|
|
async def health():
|
||
|
|
"""Health check — no auth required."""
|
||
|
|
return {"status": "ok", "version": "1.0.0"}
|