From d891717f2f5d16e319b5ebe0fe4c2de8dd40233e Mon Sep 17 00:00:00 2001 From: Codex Date: Fri, 29 May 2026 23:54:38 +0800 Subject: [PATCH] fix: add health endpoint to git mirror --- scripts/g14-gitops-render.mjs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/g14-gitops-render.mjs b/scripts/g14-gitops-render.mjs index 02652008..6dabb5d7 100644 --- a/scripts/g14-gitops-render.mjs +++ b/scripts/g14-gitops-render.mjs @@ -2841,7 +2841,7 @@ createServer((req, res) => { async function handle(req, res) { const url = new URL(req.url || "/", "http://git-mirror-http"); - if (req.method === "GET" && url.pathname === "/") { + if (req.method === "GET" && (url.pathname === "/" || url.pathname === "/health")) { res.writeHead(200, { "content-type": "application/json", "cache-control": "no-cache" }); res.end(JSON.stringify({ ok: true, service: "git-mirror-smart-http" })); return;