bugfix: custom-webui prefix

This commit is contained in:
jamesread 2024-04-12 22:07:06 +01:00
parent 3de819a0e9
commit dd11961a11
1 changed files with 1 additions and 1 deletions

View File

@ -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)