Feature: Add support for customized synth URL from env variable #1490

Merged
Evlos merged 1 commits from main into main 2024-11-25 23:17:00 +08:00

View File

@@ -174,7 +174,7 @@ class Provider::Synth
SecurityInfoResponse = Struct.new :info, :success?, :error, :raw_response, keyword_init: true
def base_url
"https://api.synthfinance.com"
ENV["SYNTH_URL"] || "https://api.synthfinance.com"
end
def app_name