jamesread 2 лет назад
Родитель
Сommit
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 := http.NewServeMux()
 	mux.Handle("/", http.FileServer(http.Dir(findWebuiDir())))
 	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("/theme.css", generateThemeCss)
 	mux.HandleFunc("/webUiSettings.json", generateWebUISettings)
 	mux.HandleFunc("/webUiSettings.json", generateWebUISettings)