From 417bf224eb83e764392b8150e91aa06b9f6e162b Mon Sep 17 00:00:00 2001 From: Mathias Bergqvist Date: Sun, 3 May 2026 22:40:31 +0200 Subject: [PATCH] feat(brain): register GET /pass-rate route MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Adds the route entry alongside the existing POST routes. Note: this is the brain HTTP REST API's first GET endpoint — it follows REST semantics for pure reads, while the legacy POST routes (query, write, ingest, etc.) all take JSON bodies. Future read endpoints SHOULD use GET; future write endpoints continue with POST. --- ingestion/cmd/server/main.go | 1 + 1 file changed, 1 insertion(+) diff --git a/ingestion/cmd/server/main.go b/ingestion/cmd/server/main.go index 29409aa..01a0dd0 100644 --- a/ingestion/cmd/server/main.go +++ b/ingestion/cmd/server/main.go @@ -73,6 +73,7 @@ func main() { mux.HandleFunc("POST /ingest-path", h.IngestPath) mux.HandleFunc("POST /ingest-raw", h.IngestRaw) mux.HandleFunc("POST /backfill-refs", h.BackfillRefs) + mux.HandleFunc("GET /pass-rate", h.PassRate) mux.Handle("POST /mcp", mcpSrv) addr := ":" + port