diff options
Diffstat (limited to 'internal/frontend/server.go')
| -rw-r--r-- | internal/frontend/server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/frontend/server.go b/internal/frontend/server.go index d6a7fa01..34fcaab5 100644 --- a/internal/frontend/server.go +++ b/internal/frontend/server.go @@ -243,6 +243,7 @@ func (s *Server) Install(handle func(string, http.Handler), cacher Cacher, authV 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("GET /v1/vulns/", s.errorHandler(api.ServeVulnerabilities(s.vulnClient))) handle("/opensearch.xml", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { serveFileFS(w, r, s.staticFS, "shared/opensearch.xml") })) |
