All checks were successful
continuous-integration/drone/push Build is passing
13 lines
276 B
Ruby
13 lines
276 B
Ruby
class Api::KreditsController < Api::BaseController
|
|
|
|
def onchain_btc_balance
|
|
btcpay = BtcPay.new
|
|
balance = btcpay.onchain_wallet_balance
|
|
render json: balance
|
|
rescue
|
|
render json: { error: 'Failed to fetch wallet balance' },
|
|
status: 500
|
|
end
|
|
|
|
end
|