aboutsummaryrefslogtreecommitdiff
path: root/backend/config.go
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2025-12-21 19:01:42 +0100
committerAnhgelus Morhtuuzh <william@herges.fr>2025-12-21 19:01:42 +0100
commit453e9805ef6583e2177fb55fa1e45cf5816a7e67 (patch)
tree84374b8f86fe53cae3f24d39343b5930f25129ea /backend/config.go
parent1c86bdda2a3067ade9aa765d8d87fe27151dd895 (diff)
feat(backend): connect to sqlite db
Diffstat (limited to 'backend/config.go')
-rw-r--r--backend/config.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/backend/config.go b/backend/config.go
index e009b8a..b221978 100644
--- a/backend/config.go
+++ b/backend/config.go
@@ -35,6 +35,7 @@ type Config struct {
DefaultImage string `toml:"default_image"`
Quotes []string `toml:"quotes"`
Language string `toml:"language"`
+ Database string `toml:"database"`
Sections []Section `toml:"section"`
@@ -73,6 +74,7 @@ func (c *Config) DefaultValues() {
}}
c.RootFolder = "data"
c.PublicFolder = "public"
+ c.Database = "database.sqlite"
c.Quotes = []string{"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do."}
c.Replacers = []Replacer{{"~", "&thinsp;"}}
}