embed static files
1 file changed, 0 insertions(+), 10 deletions(-)
changed files
M config/config.go → config/config.go
@@ -3,7 +3,6 @@ import ( "fmt" "os" - "path/filepath" "gopkg.in/yaml.v3" )@@ -13,10 +12,6 @@ Root string `yaml:"root"` Readme []string `yaml:"readme"` MainBranch []string `yaml:"mainBranch"` Unlisted []string `yaml:"unlisted,omitempty"` -} - -type Dirs struct { - Static string `yaml:"static"` } type Meta struct {@@ -33,7 +28,6 @@ } type Config struct { Repo Repo `yaml:"repo"` - Dirs Dirs `yaml:"dirs"` Meta Meta `yaml:"meta"` Server Server `yaml:"server"` }@@ -47,10 +41,6 @@ c := Config{} if err := yaml.Unmarshal(b, &c); err != nil { return nil, fmt.Errorf("parsing config: %w", err) - } - - if c.Dirs.Static, err = filepath.Abs(c.Dirs.Static); err != nil { - return nil, err } return &c, nil