Update API
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
package config
|
||||
|
||||
import "os"
|
||||
|
||||
type Config struct {
|
||||
DBUrl string
|
||||
JWTSecret string
|
||||
}
|
||||
|
||||
func GetConfig() Config {
|
||||
return Config{
|
||||
DBUrl: os.Getenv("DB_URL"),
|
||||
JWTSecret: os.Getenv("JWT_SECRET"),
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user