From 2099864dd3354159a4e0e9fb69fbb1f5d962399e Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Thu, 9 Apr 2026 20:00:10 +0000 Subject: internal/frontend: add v1/search endpoint Change-Id: I53fc1becbee21fcc586e00f4e3d93f636eaaba4c Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/764960 kokoro-CI: kokoro Reviewed-by: Jonathan Amsterdam Auto-Submit: Ethan Lee LUCI-TryBot-Result: Go LUCI Commit-Queue: Ethan Lee --- internal/frontend/server.go | 1 + 1 file changed, 1 insertion(+) diff --git a/internal/frontend/server.go b/internal/frontend/server.go index 374e59fd..abdb4d9d 100644 --- a/internal/frontend/server.go +++ b/internal/frontend/server.go @@ -242,6 +242,7 @@ func (s *Server) Install(handle func(string, http.Handler), cacher Cacher, authV handle("GET /v1/module/", s.apiHandler(api.ServeModule)) handle("GET /v1/versions/", s.apiHandler(api.ServeModuleVersions)) handle("GET /v1/packages/", s.apiHandler(api.ServeModulePackages)) + handle("GET /v1/search/", s.apiHandler(api.ServeSearch)) handle("GET /v1/vulns/", s.apiHandler(api.ServeVulnerabilities(s.vulnClient))) handle("/opensearch.xml", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { serveFileFS(w, r, s.staticFS, "shared/opensearch.xml") -- cgit v1.3