chore: rename extrasms prefixes to external sms
This commit is contained in:
parent
5c0ed48e67
commit
4ea8fd1f04
@ -18,7 +18,7 @@ const (
|
||||
AliasPrefix = "api/v1/alias"
|
||||
SendSMSPrefix = "api/v1/external/upsell"
|
||||
AliasEnsPrefix = "/api/v1/bypass"
|
||||
ExtraSMSPrefix = "/api/v1/external"
|
||||
ExternalSMSPrefix = "/api/v1/external"
|
||||
)
|
||||
|
||||
var (
|
||||
@ -26,7 +26,7 @@ var (
|
||||
dataURLBase string
|
||||
BearerToken string
|
||||
aliasEnsURLBase string
|
||||
extraSMSBase string
|
||||
externalSMSBase string
|
||||
)
|
||||
|
||||
var (
|
||||
@ -41,7 +41,7 @@ var (
|
||||
CheckAliasURL string
|
||||
SendSMSURL string
|
||||
AliasEnsURL string
|
||||
ExtraSMSURL string
|
||||
ExternalSMSURL string
|
||||
)
|
||||
|
||||
func setBase() error {
|
||||
@ -50,8 +50,8 @@ func setBase() error {
|
||||
custodialURLBase = env.GetEnv("CUSTODIAL_URL_BASE", "http://localhost:5003")
|
||||
dataURLBase = env.GetEnv("DATA_URL_BASE", "http://localhost:5006")
|
||||
aliasEnsURLBase = env.GetEnv("ALIAS_ENS_BASE", "http://localhost:5015")
|
||||
extraSMSBase = env.GetEnv("EXTRA_SMS__BASE", "http://localhost:5035")
|
||||
BearerToken = env.GetEnv("BEARER_TOKEN", "")
|
||||
externalSMSBase = env.GetEnv("EXTRA_SMS__BASE", "http://localhost:5035")
|
||||
BearerToken = env.GetEnv("BEARER_TOKEN", "eyJhbGciOiJFZERTQSIsInR5cCI6IkpXVCJ9.eyJwdWJsaWNLZXkiOiIweDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAwMDAiLCJzZXJ2aWNlIjp0cnVlLCJpc3MiOiJldGgtY3VzdG9kaWFsLTYzMDFkZjgiLCJzdWIiOiJhbGZham9yZXMtdGVzdCIsImV4cCI6MTc2Mjk0OTY5OCwiaWF0IjoxNzMxNDEzNjk4fQ.K5COKDKPKA8KwaA-jWFUJEPdS767pXlZhl1MX7pEzFplLYWIkr_w1oOz7bvOSxTWnOLpaaCOMTzBSiobnNdKCw")
|
||||
|
||||
_, err = url.Parse(custodialURLBase)
|
||||
if err != nil {
|
||||
@ -81,7 +81,7 @@ func LoadConfig() error {
|
||||
CheckAliasURL, _ = url.JoinPath(dataURLBase, AliasPrefix)
|
||||
SendSMSURL, _ = url.JoinPath(dataURLBase, SendSMSPrefix)
|
||||
AliasEnsURL, _ = url.JoinPath(aliasEnsURLBase, AliasEnsPrefix)
|
||||
ExtraSMSURL, _ = url.JoinPath(extraSMSBase, ExtraSMSPrefix)
|
||||
ExternalSMSURL, _ = url.JoinPath(externalSMSBase, ExternalSMSPrefix)
|
||||
|
||||
return nil
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user