瀏覽代碼

bugfix: custom-webui prefix

jamesread 2 年之前
父節點
當前提交
dd11961a11
共有 1 個文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      internal/httpservers/webuiServer.go

+ 1 - 1
internal/httpservers/webuiServer.go

@@ -120,7 +120,7 @@ func startWebUIServer(cfg *config.Config) {
 
 	mux := http.NewServeMux()
 	mux.Handle("/", http.FileServer(http.Dir(findWebuiDir())))
-	mux.Handle("/custom-webui/", http.FileServer(http.Dir(findCustomWebuiDir())))
+	mux.Handle("/custom-webui/", http.StripPrefix("/custom-webui/", http.FileServer(http.Dir(findCustomWebuiDir()))))
 	mux.HandleFunc("/theme.css", generateThemeCss)
 	mux.HandleFunc("/webUiSettings.json", generateWebUISettings)