Added config directory

Signed-off-by: Marcus Noble <github@marcusnoble.co.uk>
This commit is contained in:
Marcus Noble 2022-01-19 20:43:30 +00:00
parent b195ec9e4d
commit f7af7212a4
Signed by: AverageMarcus
GPG Key ID: B8F2DB8A7AEBAF78

View File

@ -11,6 +11,7 @@ func main() {
viper.SetConfigType("yaml")
viper.SetConfigName("urls")
viper.AddConfigPath(".")
viper.AddConfigPath("/config")
if err := viper.ReadInConfig(); err != nil {
panic(err)
}