added more form functions

This commit is contained in:
2023-03-26 20:19:31 +02:00
parent 0af31bb0d9
commit 07bb5569a7
10 changed files with 200 additions and 91 deletions

View File

@@ -34,6 +34,7 @@ type Apicontext struct {
// holds the whole configs, filled by commandline flags, env and config file
type Config struct {
// Flags+config file settings
ApiPrefix string `koanf:"apiprefix"` // path prefix
Debug bool `koanf:"debug"`
Listen string `koanf:"listen"` // [host]:port
@@ -42,6 +43,7 @@ type Config struct {
DbFile string `koanf:"dbfile"`
Super string `koanf:"super"` // the apicontext which has all permissions
Frontpage string `koanf:"frontpage"` // a html file
Formpage string `koanf:"formpage"` // a html file
// fiber settings, see:
// https://docs.gofiber.io/api/fiber/#config