start implementing auth
This commit is contained in:
@@ -13,6 +13,7 @@ type Config struct {
|
||||
DBUser string
|
||||
DBPassword string
|
||||
DBName string
|
||||
JWTSecret string
|
||||
}
|
||||
|
||||
func GetEnv(key string) string {
|
||||
@@ -32,5 +33,6 @@ func Load() *Config {
|
||||
DBUser: GetEnv("DB_USER"),
|
||||
DBPassword: GetEnv("DB_PASSWORD"),
|
||||
DBName: GetEnv("DB_NAME"),
|
||||
JWTSecret: GetEnv("JWT_SECRET"),
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user