19 lines
324 B
Python
19 lines
324 B
Python
from datetime import datetime, UTC
|
|
|
|
from fastapi import APIRouter
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/health")
|
|
def health() -> dict:
|
|
"""
|
|
Health check endpoint.
|
|
Returns server time in UTC ISO-8601 format.
|
|
"""
|
|
return {
|
|
"status": "ok",
|
|
"server_time": datetime.now(UTC).isoformat(),
|
|
}
|
|
|