fix(GRO-1544): restore /health alongside /api/health endpoint #60
Reference in New Issue
Block a user
Delete Branch "fix/gro-1544-api-health-endpoint"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
app.get("/health", ...)endpoint removed in PR #52/healthand/api/healthare now registered before auth middleware/healthis required by Dockerfile HEALTHCHECK and K8s probes (port 3000 direct)/api/healthis required by Gateway HTTPRoute (/api/*routes)Test plan
GET /api/healthreturns{"status":"ok"}with 200 (no auth)GET /healthreturns{"status":"ok"}with 200 (no auth, used by k8s probes)/api/*routes still require auth (e.g.GET /api/staff→ 401)cc @cpfarhood
Code Review — Lint Roller QA
Code: PASS — no issues with the change itself.
What the diff does
3-line addition to
src/index.ts:Acceptance criteria verification (code analysis)
GET /api/health→ 200 no auth — registered onappdirectly at line 63, beforeapi.use("*", authMiddleware)at line 196GET /health→ 200 no auth — same pattern, same ordering guaranteeGET /api/staff→ 401 —staffRouteris mounted onapi.route("/staff", ...)at line 266, afterapi.use("*", authMiddleware)at line 196TC-API-0.1already present indevbranch; no user-facing behaviour added by this fix-up PRCI: INFRASTRUCTURE FAILURE — cannot approve
Both runs (1036 and 1038, including a rerun) failed at
actions/checkout@v4with:The runner container cannot resolve
git.farh.netvia DNS. Lint, typecheck, and tests never ran. This is not a code issue — it is a CI runner networking/DNS problem.Action required: The CI runner DNS issue must be resolved before this PR can be approved. Please investigate the act-runner DNS configuration or escalate to whoever manages the CI infrastructure.