diff options
author | xengineering <me@xengineering.eu> | 2024-10-07 21:23:20 +0200 |
---|---|---|
committer | xengineering <me@xengineering.eu> | 2024-10-07 21:23:20 +0200 |
commit | 293965c55615bb072843500cc3af44c0e266dfcd (patch) | |
tree | c98de94197de651323de1478a6c5b513e5adba67 | |
parent | c448b708c5392687253a04e8d9a8ca5cb9c142c5 (diff) | |
download | soundbox-app-293965c55615bb072843500cc3af44c0e266dfcd.tar soundbox-app-293965c55615bb072843500cc3af44c0e266dfcd.tar.zst soundbox-app-293965c55615bb072843500cc3af44c0e266dfcd.zip |
Allow URL configuration in config file
-rw-r--r-- | config.go | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -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) { |