summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2023-03-27 18:08:34 +0200
committerxengineering <me@xengineering.eu>2023-03-27 19:31:33 +0200
commiteb86fbf4c88647bcc6aaa86660da58df96a72850 (patch)
tree2b63542336c3de58f193952f6276f4227134c62b /main.go
parentd7ce7860bf47ad1f51a44a9705eb0dbf1825eb66 (diff)
downloadwebiot-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.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/main.go b/main.go
index 3264134..e853616 100644
--- a/main.go
+++ b/main.go
@@ -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) {