added the CreditSendReverseQuote prefix and URL
This commit is contained in:
		
							parent
							
								
									a705443786
								
							
						
					
					
						commit
						81ff6c4034
					
				| @ -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 | ||||
| } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user