packagecorehttpimport("net/http"core"github.com/jbenet/go-ipfs/core")const(// TODO renamewebuiPath="/ipfs/QmTWvqK9dYvqjAMAcCeUun8b45Fwu7wPhEN9B9TsGbkXfJ")funcWebUIOption(n*core.IpfsNode,mux*http.ServeMux)error{mux.Handle("/webui/",&redirectHandler{webuiPath})returnnil}typeredirectHandlerstruct{pathstring}func(i*redirectHandler)ServeHTTP(whttp.ResponseWriter,r*http.Request){http.Redirect(w,r,i.path,302)}