add share path

This commit is contained in:
kandrusyak
2023-06-30 19:08:44 +03:00
parent b25eaf481f
commit 36a64f4fe3
3 changed files with 8 additions and 4 deletions

View File

@@ -5,7 +5,8 @@ import (
)
type ServerConfig struct {
Port string
Port string
SharePath string
}
type Config struct {
@@ -15,7 +16,8 @@ type Config struct {
func New() *Config {
return &Config{
Server: ServerConfig{
Port: getEnv("PORT", ""),
Port: getEnv("PORT", ""),
SharePath: getEnv("SHARE_PATH", "public"),
},
}
}