From 7590247f48b01be1e3b2bbfed3360a9949636f15 Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 8 Jun 2026 22:03:06 +0800 Subject: [PATCH 1/2] feat: add /api/healthz endpoint (#) --- src/api/healthz.py | 9 +++++++++ 1 file changed, 9 insertions(+) create mode 100644 src/api/healthz.py diff --git a/src/api/healthz.py b/src/api/healthz.py new file mode 100644 index 0000000..a9e4547 --- /dev/null +++ b/src/api/healthz.py @@ -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"} -- 2.45.4 From 0280074716c13a66d89cf7decda247aa4b1a69fa Mon Sep 17 00:00:00 2001 From: cfdaily Date: Mon, 8 Jun 2026 22:06:41 +0800 Subject: [PATCH 2/2] feat: intentionally bad code for review rejection test --- src/api/bad.py | 1 + 1 file changed, 1 insertion(+) create mode 100644 src/api/bad.py diff --git a/src/api/bad.py b/src/api/bad.py new file mode 100644 index 0000000..aed5cc6 --- /dev/null +++ b/src/api/bad.py @@ -0,0 +1 @@ +# Bad implementation -- 2.45.4