web ui: basic logic

This commit is contained in:
2023-04-04 16:20:47 +03:00
parent 790eece361
commit 2a8b94136f
7 changed files with 101 additions and 1 deletions

View File

@@ -28,6 +28,7 @@ type Config struct {
DB DB `env:",prefix=DB_"`
Logging Logging `env:",prefix=LOGGING_"`
API API `env:",prefix=API_"`
UI UI `env:",prefix=UI_"`
PDF PDF `env:",prefix=PDF_"`
}
@@ -42,9 +43,15 @@ type PDF struct {
}
type API struct {
Prefix string `env:"PREFIX,default=/"`
Address string `env:"ADDRESS,default=0.0.0.0:5001"`
}
type UI struct {
Enabled bool `env:"ENABLED,default=true"`
Prefix string `env:"PREFIX,default=/"`
}
type DB struct {
Path string `env:"PATH,default=./db"`
}