diff --git a/pkg/api/server.go b/pkg/api/server.go index e92c3824f..625392ff4 100644 --- a/pkg/api/server.go +++ b/pkg/api/server.go @@ -184,6 +184,7 @@ func Start(uiBox embed.FS, loginUIBox embed.FS) { } customUILocation := c.GetCustomUILocation() + static := statigz.FileServer(uiBox) // Serve the web app r.HandleFunc("/*", func(w http.ResponseWriter, r *http.Request) { @@ -222,7 +223,7 @@ func Start(uiBox embed.FS, loginUIBox embed.FS) { } r.URL.Path = uiRootDir + r.URL.Path - statigz.FileServer(uiBox).ServeHTTP(w, r) + static.ServeHTTP(w, r) } })