aboutsummaryrefslogtreecommitdiff
path: root/internal/frontend/server.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/frontend/server.go')
-rw-r--r--internal/frontend/server.go1
1 files changed, 1 insertions, 0 deletions
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")