diff options
author | xengineering <me@xengineering.eu> | 2023-03-27 18:08:34 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2023-03-27 19:31:33 +0200 |
commit | eb86fbf4c88647bcc6aaa86660da58df96a72850 (patch) | |
tree | 2b63542336c3de58f193952f6276f4227134c62b /main.go | |
parent | d7ce7860bf47ad1f51a44a9705eb0dbf1825eb66 (diff) | |
download | webiot-eb86fbf4c88647bcc6aaa86660da58df96a72850.tar webiot-eb86fbf4c88647bcc6aaa86660da58df96a72850.tar.zst webiot-eb86fbf4c88647bcc6aaa86660da58df96a72850.zip |
Switch to simple.css
This very simple CSS framework is far better / beautiful / easy to
maintain than my own CSS.
Diffstat (limited to 'main.go')
-rw-r--r-- | main.go | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -36,7 +36,7 @@ func main() { c := parseConfig(configPath) http.HandleFunc("/", index(c.Devices, appdata)) http.HandleFunc("/api", api()) - http.HandleFunc("/webiot.css", css(appdata)) + http.HandleFunc("/simple.css", css(appdata)) fmt.Printf("Serving at http://%s\n", c.Web.Listen) log.Fatal(http.ListenAndServe(c.Web.Listen.String(), nil)) } @@ -90,7 +90,7 @@ func index(devices DevicesConfig, appdata string) func(http.ResponseWriter, *htt func css(appdata string) func(http.ResponseWriter, *http.Request) { // read CSS file - path := filepath.Join(appdata, "webiot.css") + path := filepath.Join(appdata, "simple.css") css := string(mustRead(path)) return func(w http.ResponseWriter, r *http.Request) { |