add share path
This commit is contained in:
@@ -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"),
|
||||
},
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user