Initial version

This commit is contained in:
jamesread
2021-10-16 07:51:27 +01:00
parent 03d7250cf6
commit 4de2a12aab
3 changed files with 8 additions and 0 deletions
+2
View File
@@ -13,6 +13,7 @@ import (
type webUISettings struct {
Rest string
ThemeName string
HideNavigation bool
}
func findWebuiDir() string {
@@ -44,6 +45,7 @@ func generateWebUISettings(w http.ResponseWriter, r *http.Request) {
jsonRet, _ := json.Marshal(webUISettings{
Rest: restAddress + "/api/",
ThemeName: cfg.ThemeName,
HideNavigation: cfg.HideNavigation,
})
w.Write([]byte(jsonRet))