feat: add /api/healthz endpoint (#)
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
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
This commit is contained in:
@@ -0,0 +1,9 @@
|
|||||||
|
"""Health check endpoint."""
|
||||||
|
from fastapi import APIRouter
|
||||||
|
|
||||||
|
router = APIRouter()
|
||||||
|
|
||||||
|
@router.get("/api/healthz")
|
||||||
|
async def healthz():
|
||||||
|
"""Lightweight health check."""
|
||||||
|
return {"status": "ok"}
|
||||||
Reference in New Issue
Block a user