Implement bitcoin donations via BTCPay
This commit is contained in:
@@ -24,8 +24,8 @@ class BtcpayManagerService < ApplicationService
|
||||
"#{base_url}/#{path.gsub(/^\//, '')}"
|
||||
end
|
||||
|
||||
def get(path)
|
||||
res = Faraday.get endpoint_url(path), {}, headers
|
||||
def get(path, params = {})
|
||||
res = Faraday.get endpoint_url(path), params, headers
|
||||
JSON.parse(res.body)
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user