diff --git a/server/cmd/server/main.go b/server/cmd/server/main.go index 3c82344..999898b 100644 --- a/server/cmd/server/main.go +++ b/server/cmd/server/main.go @@ -43,6 +43,8 @@ func main() { // configured so the public API can run on its own. See internal/admin. startAdminIfConfigured() + // ─── HTTP server ────────────────────────────────────────────────────────── + r := chi.NewRouter() r.Use(middleware.Logger) r.Use(middleware.Recoverer) @@ -81,6 +83,7 @@ func main() { log.Printf("probe ingest route registered (%d probe(s))", len(secretMap)) } } + // Mount all /v1/... routes. HandlerFromMuxWithBaseURL registers every route // from the OpenAPI spec onto the provided chi router with the given prefix, // so the router itself is the http.Handler we serve.