diff options
Diffstat (limited to 'internal/frontend/server.go')
| -rw-r--r-- | internal/frontend/server.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/internal/frontend/server.go b/internal/frontend/server.go index 07c235c8..b68d815f 100644 --- a/internal/frontend/server.go +++ b/internal/frontend/server.go @@ -215,6 +215,9 @@ func (s *Server) Install(handle func(string, http.Handler), cacher Cacher, authV handle("/golang.org/x", s.staticPageHandler("subrepo", "Sub-repositories")) handle("/files/", http.StripPrefix("/files", s.fileMux)) handle("/vuln/", vulnHandler) + handle("/opensearch.xml", http.HandlerFunc(func(w http.ResponseWriter, r *http.Request) { + serveFileFS(w, r, s.staticFS, "shared/opensearch.xml") + })) handle("/", detailHandler) if s.serveStats { handle("/detail-stats/", |
