Files
moziplus-v2/src/api/healthz.py
T
cfdaily 7590247f48
CI / lint (push) Successful in 9s
CI / lint (pull_request) Successful in 6s
CI / test (push) Successful in 4s
CI / test (pull_request) Successful in 4s
CI / notify-on-failure (push) Successful in 2s
CI / notify-on-failure (pull_request) Successful in 3s
feat: add /api/healthz endpoint (#)
2026-06-08 22:03:06 +08:00

10 lines
195 B
Python

"""Health check endpoint."""
from fastapi import APIRouter
router = APIRouter()
@router.get("/api/healthz")
async def healthz():
"""Lightweight health check."""
return {"status": "ok"}