summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorxengineering <me@xengineering.eu>2024-10-07 21:23:20 +0200
committerxengineering <me@xengineering.eu>2024-10-07 21:23:20 +0200
commit293965c55615bb072843500cc3af44c0e266dfcd (patch)
treec98de94197de651323de1478a6c5b513e5adba67
parentc448b708c5392687253a04e8d9a8ca5cb9c142c5 (diff)
downloadsoundbox-app-293965c55615bb072843500cc3af44c0e266dfcd.tar
soundbox-app-293965c55615bb072843500cc3af44c0e266dfcd.tar.zst
soundbox-app-293965c55615bb072843500cc3af44c0e266dfcd.zip
Allow URL configuration in config file
-rw-r--r--config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/config.go b/config.go
index 5bdd48c..a4f2805 100644
--- a/config.go
+++ b/config.go
@@ -14,8 +14,14 @@ type SoundboxConfig struct {
Mac string `json:"mac"`
}
+type URLConfig struct {
+ Name string `json:"name"`
+ Url string `json:"url"`
+}
+
type GlobalConfig struct {
Soundboxes []SoundboxConfig `json:"soundboxes"`
+ URLs []URLConfig `json:"urls"`
}
func loadConfig() (GlobalConfig, error) {