Noop liveness probe returning {"pong": true}. Registered as a public
path (no Caddy/RBAC auth) like /health so external monitoring can reach
it. Adds unit test via FastAPI TestClient.
Closes #633
8 lines
138 B
Python
8 lines
138 B
Python
from fastapi import APIRouter
|
|
|
|
router = APIRouter()
|
|
|
|
|
|
@router.get("/ping")
|
|
async def ping() -> dict[str, bool]:
|
|
return {"pong": True}
|