🔨 Refactor URL handling logic and remove unused variables

This commit is contained in:
2024-03-07 15:32:38 +04:00
parent f7c4239163
commit a947b98acf
5 changed files with 16 additions and 8 deletions

View File

@ -37,6 +37,14 @@ func GetAppConfig() *AppConfig {
}
}
func GetForwardDomain() string {
return GetEnvOrPanic("FORWARD_DOMAIN")
}
func GetCreateDomain() string {
return GetEnvOrPanic("CREATE_DOMAIN")
}
func GetPostgresConfig() *PostgresConfig {
return &PostgresConfig{
USER: GetEnvOrPanic("POSTGRES_USER"),