aboutsummaryrefslogtreecommitdiff
path: root/backend/config.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-10-03 11:36:22 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2025-10-03 11:49:09 +0200
commitb8a964e19de9cb025587c3546930a18c0d4edd07 (patch)
treefe4bec22a4727c4932021eb973a646ca6389011e /backend/config.go
parentcec39db23db603e87b969a5c630b5873f96a8be7 (diff)
feat(backend): handle simple root files
Diffstat (limited to 'backend/config.go')
-rw-r--r--backend/config.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/backend/config.go b/backend/config.go
index b1fcbd8..33665ea 100644
--- a/backend/config.go
+++ b/backend/config.go
@@ -24,6 +24,7 @@ type Config struct {
Links []Link `toml:"links"`
Logo Logo `toml:"logo"`
LogFolder string `toml:"log_folder"`
+ RootFolder string `toml:"root_folder"`
Quotes []string `toml:"quotes"`
}
@@ -46,6 +47,8 @@ func (c *Config) DefaultValues() {
Favicon: "favicon.jpg",
}
c.LogFolder = "data/logs"
+ c.RootFolder = "data"
+ c.Quotes = []string{"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do."}
}
func LoadConfig(path string) (*Config, bool) {