added the CreditSendReverseQuote prefix and URL

This commit is contained in:
Alfred Kamanda 2025-10-28 11:32:03 +03:00
parent a705443786
commit 81ff6c4034
Signed by: Alfred-mk
GPG Key ID: E60B2165A97F4D41

View File

@ -27,6 +27,7 @@ const (
ExternalSMSPrefix = "/api/v1/external"
AliasUpdatePrefix = "/api/v1/internal/update"
CreditSendPrefix = "/api/v1/credit-send"
CreditSendReverseQuotePrefix = "/api/v1/pool/reverse-quote"
)
var (
@ -59,6 +60,7 @@ var (
ExternalSMSURL string
AliasUpdateURL string
CreditSendURL string
CreditSendReverseQuoteURL string
)
func setBase() error {
@ -108,6 +110,7 @@ func LoadConfig() error {
ExternalSMSURL, _ = url.JoinPath(externalSMSBase, ExternalSMSPrefix)
AliasUpdateURL, _ = url.JoinPath(aliasEnsURLBase, AliasUpdatePrefix)
CreditSendURL, _ = url.JoinPath(dataURLBase, CreditSendPrefix)
CreditSendReverseQuoteURL, _ = url.JoinPath(dataURLBase, CreditSendReverseQuotePrefix)
return nil
}