From 86d1c7b3f2f2d36dbaf488d847c09e1655356ca7 Mon Sep 17 00:00:00 2001 From: Ethan Lee Date: Wed, 11 Mar 2026 20:57:08 +0000 Subject: internal/api: implement search endpoint - Implement ServeSearch method and pagination for search results. Change-Id: I109d0861b5fa0cfbc20ce20308561ef6b5616405 Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/754860 LUCI-TryBot-Result: Go LUCI kokoro-CI: kokoro Auto-Submit: Ethan Lee Reviewed-by: Jonathan Amsterdam --- internal/frontend/server.go | 1 + 1 file changed, 1 insertion(+) (limited to 'internal/frontend/server.go') diff --git a/internal/frontend/server.go b/internal/frontend/server.go index acd9c909..a1fd4516 100644 --- a/internal/frontend/server.go +++ b/internal/frontend/server.go @@ -240,6 +240,7 @@ func (s *Server) Install(handle func(string, http.Handler), cacher Cacher, authV handle("GET /v1/module/", s.errorHandler(api.ServeModule)) handle("GET /v1/versions/", s.errorHandler(api.ServeModuleVersions)) handle("GET /v1/packages/", s.errorHandler(api.ServeModulePackages)) + handle("GET /v1/search", s.errorHandler(api.ServeSearch)) handle("/opensearch.xml", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { serveFileFS(w, r, s.staticFS, "shared/opensearch.xml") })) -- cgit v1.3