mirror of
https://github.com/OliveTin/OliveTin
synced 2026-09-24 10:45:41 +00:00
Initial version
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user