From 293965c55615bb072843500cc3af44c0e266dfcd Mon Sep 17 00:00:00 2001 From: xengineering Date: Mon, 7 Oct 2024 21:23:20 +0200 Subject: Allow URL configuration in config file --- config.go | 6 ++++++ 1 file changed, 6 insertions(+) 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) { -- cgit v1.2.3-70-g09d2